SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: Go back and reload
-
May 21, 2001, 10:54 #1
- Join Date
- Feb 2001
- Location
- Shanghai, China
- Posts
- 214
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hi, I'm looking for a way to make something similar this "Thank you for posting, you will now be ..." messages here in Sitepointforums. Therefore I need to be send back (as "java script:history.back(1)", but not just go back but reloud this page ( otherwise the user would see the database output without his new input)
Thanx, Alex
-
May 21, 2001, 10:58 #2
- Join Date
- Mar 2001
- Location
- In a van... down by the river.
- Posts
- 366
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
i had a similar problem when i was developing an online database.. if they went back it showed the "cached" content.. what i did to get around it was put these two tags in the head of the document that you are going back to..
<META HTTP-EQUIV="expires" CONTENT="0">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
doing this should cause the page to have the New content when you use the history.go javascript.. well it worked for me anyway.Some say the world will end in fire, Some say in ice.
From what I've tasted of desire
I hold with those who favor fire.
-
May 21, 2001, 11:31 #3
- Join Date
- Feb 2001
- Location
- Van down by the river
- Posts
- 254
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I've found that the no-cache meta tags aren't always reliable, so I have another workaround. I use JavaScript to append a random number or part of a date string to the query string of the url. That way, the page shouldn't be pulled from cache, since a "new" page is requested each time.
-
May 21, 2001, 12:59 #4
- Join Date
- Mar 2001
- Location
- In a van... down by the river.
- Posts
- 366
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
hmmm.. that sounds interesting.. i have always found them pretty reliable for what i am doing, but i guess thats because i am on a company intranet and i have pretty good control over what browser people use, and there settings, and all that wonderfull stuff..
Some say the world will end in fire, Some say in ice.
From what I've tasted of desire
I hold with those who favor fire.
-
May 21, 2001, 15:56 #5
- Join Date
- Feb 2001
- Location
- Shanghai, China
- Posts
- 214
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hey scrubz, could show me an expample please?
It sounds not bad, but anyway it doesn't sound as the top-solution. Does anyone know how this problem is solved here on sitepointforums ?
Bookmarks