Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh on click

Status
Not open for further replies.

jgeddes

Programmer
Aug 3, 2001
18
US
I see that this question has been asked before but I cannot get the resolution to work for me.... my situation...

I have a main page with links in left frame and main page display in right frame. I am using a PHP "like" coding to update databases on an AS/400. When a user click on new entry, the page loads on the right and generates a new number. They can enter data and submit the data in the db. They can navigate around the site, but when the click on new entry, the page pops up from cache and does not reload from the server. It needs to do this to generate a new number for the entry.

My question is how to reload or refresh from server when you display a page in another frame.

Thanks in advance for the help.

John
 
Hi

There are certain browser settings which will prevent a page from refreshing automatically. In Internet Explorer Tools>Internet Options>General Tab>Temporary Internet Files>Settings

But, we can't go around changing every browser now can we!?!

My get around it to add a "fake" url parameter on the end of the page which you absolutely want to refresh. I tend to use a current timedate value. When the page is requested it is seen by the browser as a different page and will always refresh.

You can also use the meta tags setting - but I can't remember which one it is off the top of my head

Derren [The only person in the world to like Word]
 
Yes adding Now() as a variable at the end on the URL forces a fresh page rather than cached Live long and make your kids suffer..
 
Cheech,

Could you elaborate on how to put Now() on the end of the url? Just tie it on the end, or what?

Thanks.
 
<a href=&quot;yourpage.asp?refreshtag=<%=now()%>&quot;>

Where &quot;refreshtag&quot; can be anything you want

Derren [The only person in the world to like Word]
 
Derren,

thanks for the help.

It seems though my comment &quot;ASP-like&quot; threw people off. The &quot;code&quot; is called net.data and is used on IBM mainframe as/400 machines. That asp line will not work.

I was hoping there was maybe a javascript trick or maybe an addin behavior for dreamweaver.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top