CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 page refresh

Print topic Send  topic

Author Message
drpcken

Posts: 60
Posted: 08/30/2004, 5:26 PM

Many of my pages, including the grids in them, are not refreshing when they come back to the page. I was wondering how to get the pages to refresh just one time onload? The only way i could get this to work was by doing a javascript refresh statement, but of course it throws itself in a loop.

How can i just refresh once when the page is loaded?

Thanks!
View profile  Send private message
E43509

Posts: 283
Posted: 08/31/2004, 5:49 AM

Not sure what language you are using but I typically have a bunch of meta tags in my pages to eliminate caching. There is some Coldfusion tags but if you are in another language you can ignore them.
<!--- these tags will expire a page so that when they hit the back button you won't get problems looking at old data. it was also recommended to add in the title tag a time. <title>Survey
<cfoutput>#TimeFormat(NOW(),"mmsstt")#</cfoutput>
</title>
This trick came from CF tips --->
<meta http-equiv="Expires" content="Wed, 01 January 1997 00:00:00 GMT">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
<cfheader name="cache-control" value="no-cache, no-store, must-revalidate">
<cfheader name="pragma" value="no-cache">
<meta http-equiv="expires" content="0">
View profile  Send private message
bokyo
Posted: 08/31/2004, 6:36 AM

for asp

http://support.microsoft.com/default.aspx?scid=http://s...&NoWebContent=1

hope this helps
jormah

Posts: 10
Posted: 08/31/2004, 10:44 PM

Have anybody use this at Java/Servlets HTML code?

R- jormah
_________________
Jorma Hytonen
Mipro Oy, Finland
View profile  Send private message
drpcken

Posts: 60
Posted: 09/01/2004, 7:57 AM

Thanks for replying, but I found a much easier work around for this. In my IIS settings for my website, I put an http header to tell each page it expired in the past, any date before the current will work. That way each page load see's that the page has expired and refreshes automatically.

Thanks for all your suggestions and ideas though!
View profile  Send private message
wesley
Posted: 07/26/2005, 11:07 AM

:-/ I want to know how to refresh once because I am creating an image viewer in asp and when I use redirect it doesn't refresh the page. Can anybody here help me? Thanks... I tried the code upside, but none worked.
peterr


Posts: 5971
Posted: 07/26/2005, 11:30 AM

1. Use redirect with some random parameter, so that the Web browser will not cache the previous URL. For example URL?rnd=123.

or 2. Use some HTML meta tags that will tell Web browsers not to cache that page.

or 3. Expire the cache otherwise. There should be several methods for this which you can find on the net:
http://forums.aspfree.com/archive/t-47497/clicking-back...n-should-expire
http://www.faqts.com/knowledge_base/view.phtml/aid/3151
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.