SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Addict
    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

  2. #2
    I am the night... bman's Avatar
    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.

  3. #3
    I believe you have my stapler. scrubz's Avatar
    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.

  4. #4
    I am the night... bman's Avatar
    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.

  5. #5
    SitePoint Addict
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •