#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    25
    Rep Power
    0

    To Refresh page on BROWSER's BACK Button


    Hello ,

    My web pages have a search page in which user need to fill the form and then next ASP page finds the required data and display it in the form of a table. Now when I get back to previous page by BROWSER's BACK button on left-top I will not get the fresh form and it shows the all radio buttons selected.This is not required.

    Can it be possible for me to refresh this page when one goes to it by BROWSER's BACK button ?

    Thanks
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    137
    Rep Power
    0
    Yes and no.

    And that's not the answer you hoped for, I'm sure

    Yes: You can put the following tag in the header of your page(s)
    meta http-equiv="pragma" content="no-cache"

    This will tell the browser not to cache the page content and forces it to get the page from the given url.

    No: Not all browsers comply to this option.

    The browser back/forward/reload buttons all use the localy cached content if it is able to (good for speed and lessens traffic on the net). The no-cache option is html 4.01 legal (probably before 4 too) and created for those situations that the browser should not use it's local cache.

    All browsers should comply, but as I stated before, some don't.

    I know this isn't the sollution you are looking for, but as far as I know you cannot tackle this problem with 100% guarantee.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    25
    Rep Power
    0
    Druuna,

    Thanks a lot for your efforts

    This way also I can solve my problem .

    My page has 6 radio buttons in the group of two.

    Now I want to keep only one ticked in each group.

    This I did on window_onload() function. But it doesn't work

    when I browse back from the next page.Can it be possible to

    make a constraint on each group which keep only one

    radio button selected all the time even if page is displayed

    after browseing back ?

    Thanks

    Sachin
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    137
    Rep Power
    0
    Like I said before, the client (browser) decides how it is done. There is no solution that will work for all browsers.
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    1
    Rep Power
    0

    page refresh on browser back button


    Originally Posted by sach_del
    Hello ,

    My web pages have a search page in which user need to fill the form and then next ASP page finds the required data and display it in the form of a table. Now when I get back to previous page by BROWSER's BACK button on left-top I will not get the fresh form and it shows the all radio buttons selected.This is not required.

    Can it be possible for me to refresh this page when one goes to it by BROWSER's BACK button ?

    Thanks
    Below code snippet takes you to previous page after refresh, works in Mozilla also:
    <input type="button" value="Go Back" onclick="javascript:location.href=document.referrer;"/>

IMN logo majestic logo threadwatch logo seochat tools logo