Reloading a Page when Browser back button is pressed

Hi There
We are designing a web site in which all the pages are dynamic depending on what he does with his email and addressbook system. Problem is when the uers request a change to the his email accounts or addressbook entries he is sent to editable pages .After editing he is sent back to view page .Now when he uses the back button he sees the old record that he modifed which i dont want to do that Instead i want him to show the updated version of that page
Now how to achieve this.
Is there any way to send a request to the server everytime the back button is pressed.
Also i am trying to remoce the cache using the code below but it does not work i just dont know why?
response.setHeader("Cache-Control","no-cache"); // HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setHeader("Expires" , "0");
Any help would be appreciated.
Thanks.
Mumtaz

I also have noticed that in the latest version of Explorer it ignore the no-Cache header when the back button is pressed. Is this an undocumented "feature" put in place by MS or is there a newer header tag that needs to be set. The no-cache and expires tags work fine in Netscape and ealier versions of MS with my existing code. The version I am having difficulties with is 6.00
Thanks

Similar Messages

  • To Dispaly stale data page when browser back button is clicked.

    Hi All,
    How can we display Stale Data Page when the browsers back button is clicked.
    thanks

    You have already raised a thread for this..
    To display Stale Data Page when browsers back button clicked.
    - Senthil

  • There is no longer a "close tab" under the file menu, so how do I go back to a previous page when the back button will not work?

    Often the back button will not work. I can find no "close tab" under the menus, which I think used to be there, and which is used with Internet Explorer to go to the previous page. How can I go back to the previous page with Firefox when the back button will not work?

    No you can't. Apple don't support downgrading of iOS.

  • Safari 5.1 reloads page when using back button or gesture

    Safari has the strange behavior of reloading pages "navigated to" using the back button or gesture.  Most other browsers I've worked with pull from cache when using the back button.  I don't think this behavior is compliant with standards - defacto as they may be. 
    An example of why this is wrong is the navigation of this forum.  I just loaded Lion and need to use the forum for support.  When navigating back from a particular post to the list of posts the page will reload.  Needless to say several hundred posts have been entered since last looking at the list and I subsequently lose the context of what I read last.  The list of posts from cache which I orginally looked at should be returned - not the latest updated one.  Let me choose when to refresh a page from the cache.
    I downloaded Google Chrome to compare behaviors.  Chrome does not reload pages navigated to using the back button - it pulls the pages from cache.
    I've looked at the configuration of Safari and see no options to configure this behavior. 

    Switch from one finger swipe to two finger swipe
    ok, since i do not have a trackpad, i used my magic mouse. I changed my swipe between pages from one finger to two and my pages no longer re-loaded. Changing that option back to one finger swipe then set my pages to re-load   our setting are slightly differnt, but were looking for the same outcome.   Lood for a "Swipe between pages option. Then look for a drop down triangle. now change your swipe left or right with two fingers to one.   this should re-load your pages now ;-)

  • Is there a way to have Safari not reload the page when moving back and forth?

    I really like being able to swipe back and forth in Safari, however when I do this, it reloads the page. Why? Can't it just used the cached content? I understand that my view my be 'outdated', but I could always manually refresh if I wanted to.
    The reason I want this is because when you swipe back, it takes a few seconds before you can actually scroll the page while you wait for it to load, which is annoying

    Might be a cache issue ...
    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.

  • Need to select link twice when using Browser back button

    I see that my command_link works fine in normal scenarios.
    But when I come to that page using browser back button and then select the link within the page.... the first time, looks like its regenerating the page and only when I select the link second time it is calling the action listener associated with the link.
    Any clue as to how to fix this problem?
    Thanks

    use the following lines in your web.xml to avoid this bug of the current jsf-ri version.
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>I already tried to report this bug some time ago:
    http://forum.java.sun.com/thread.jsp?forum=427&thread=478928&tstart=180&trange=15

  • Stop Firefox reloading webpages when hitting back button

    Is there any way to make hitting the back button not reload pages? It's become a bit of annoyance to me within the past few days because it sorta messed with my flow.
    For example, let's say I'm looking at a phpBB forum. There's a unread posts button next to each topic. I click on the one next to a topic, this topic has 3 pages. The last post I read was halfway down the first page, it takes me to it (and adds "&view=unread#unread" to the URL). I finish reading the page, and move on to page 2. Partway down page two, I decide to go back to page 1 to re-read something that got quoted, and click the back button. But because of what seems like a recent change, Firefox attempts to reload the page instead of its old functionality... and thanks to the unread bit at the end of the URL, phpBB serves up page *3*. Now instead of going back, I've gone forward.

    This is irritating. This should not be necessary. In every previous version, clicking the back arrow re-displays the page from cache; clicking the reload button reloads the page.
    The back button has essentially become a reload button. It's just wrong. and it fouls up my work-flow. Also,
    browser.cache.check_doc_frequency user set integer 2
    did nothing to alleviate the issue.

  • Browser back button not working with ADF Application integrated with SSO

    I have integrated an adf application with Oracle SSO Authentication. Application is running fine.
    Though, while navigating between pages, using browser back button , it is not redirecting the url properly
    Should Redirect it to : http://<hostname>:<port>/<contex-root>/<servlet>/<id>
    Presently Redirecting it to :http://<hostname>:<port>/<contex-root>
    As, directory browsing is not allowed, there is Error 403--Forbidden .
    Can anybody tell what changes needs to be made to make browser back button work.

    In some of the documentation I have read, they have mentioned that using the back button in a browser doesn't work too well with any JSF type of application (not just ADF and Jdeveloper apps).
    http://docs.oracle.com/cd/E15051_01/web.1111/b31974/web_form.htm#CFHHJGJH
    Instead, they suggest using buttons on the form.
    There is a video on using navigation between forms that may be of value: http://www.youtube.com/watch?v=bsPtmRID5XI&feature=plcp
    Stuart
    Edited by: Stuart Fleming on Sep 11, 2012 5:30 AM

  • After doing a Google search, I click on a link and go to the searched web page.  When I go back to the Google page using the back button the links I originally clicked on no longer show as "greyed out".  Any idea what is going on with the browser?

    After doing a Google search, I click on a link and go to the searched web page.  When I go back to the Google page using the back button the links I originally clicked on no longer show as "greyed out".  Any idea what is going on with the browser?

    Type '''about:config''' in the Location (address) bar and press the "Enter" key. When you see a warning, click '''I'll be careful, I promise!''' button.
    * Preferences that have been modified are shown as '''bold (user set)'''.
    * Preferences can be '''Reset to the default''' or changed via the right-click context menu.
    -> In the '''Filter bar''', type '''browser.sessionhistory.max_entries'''
    * Right click the preference '''browser.sessionhistory.max_entries''' and click '''Modify'''
    * Change value from 0 to whatever you want over 0 (Default value is 50)
    * click OK
    -> Close the '''about:config''' tab and then Restart Firefox.
    See this post:
    * https://support.mozilla.com/en-US/questions/860894#answer-229574
    Check and tell if its working.

  • The browser back button is not working correctly when using the search funtion in ProBoards forums. Is there a known issue with ProBoards & FF?

    I have submitted a bug report to ProBoards, but they cannot duplicate the problem I am having, so I am submitting this here in hopes you can find a solution.
    At ProBoards Support and another PB forum while doing searches I found this problem, which continues with repeated testing over the past week or so:
    url: http://support.proboards.com/search
    1. enter perameters for the search (posts only by staff for the last 2 days)
    2. choose one of those post results & click on it (choose a post on page 14 and not on page 1 of the results)
    3. using the browser back button, attempt to return to the previous page of search results
    4. rather than being taken back to the search results with my parameters, the search parameters have been removed and the page show 1000 results of posts by everybody.
    I have tested this over and over again, disabling plugins, and nothing seems to alter the malfunctioning of the back button when I am doing this search function at ProBoards.
    I have tested it in Internet Explorer and find that in IE the browser back button works properly with ProBoards searches. I always get the result I expect, so it's a problem with how FF interfaces with ProBoards, I think.

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • Browser back button not maintain selections on previous page?

    Hi every one
    1. The following is my code for a home page.
    <h:form>
        <h:selectManyCheckbox value="#{home.value}">
             <f:selectItems  value="#{brandItems}"/>                  
        </h:selectManyCheckbox>
        <h:commandButton action="#{home.display}" value="Submit" />
        <s:link value="view newxt page" action="#{temp.getAll}" view="/table.xhtml" />
    </h:form>2. This is my session bean code
    @Stateful
    @Name("home")
    public class TempAction  implements Temp,Serializable
         private static final long serialVersionUID = 1L;
         String []value;
        @Out(required=false)
        List<SelectItem> brandItems;
         @Begin(join=true)
         public void getAll() {
              brandItems=new ArrayList<SelectItem>();
              brandItems.add(new SelectItem("First","First"));
              brandItems.add(new SelectItem("Second","Second"));
         public String[] getValue() {
              return value;
         public void setValue(String[] value) {
              this.value = value;
         public void display() {
              for(String a:value)
                   System.out.println("________________"+a);
        @End
        public void reset() {}
        @Destroy
        @Remove
        public void destroy() {}
    }3. I invoke getAll method by using following code in my pages.xml
    After visiting the second page by clicking the s:link , I go back to the first page by using browser BACK button . Then when I hit the SUBMIT button, I get the following error message in my jboss console and also the check boxs are deselected.
    16:29:05,843 INFO  [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
    sourceId=j_id16:j_id17[severity=(ERROR 2), summary=(value is not valid), detail=(value is not valid)]Kindly assist to resolve this problem. Many thanks in anticipation.
    By
    Thiagu.m

    Did you ever find a solution? I'm having this issue also.

  • Disable page display when back button is pressed after logout

    hi,
    I dont want the old pages to appear once the back button is pressed after loggin g out. That is .... when logged in, if the user presses back button then his previous pages must be shown....but once the user logs out and then if he presses back button then some message like session has been closed....like message should be displayed.
    Hope you understood the problem

    If you expire a page then back button will not take it to the previous page.
    expire is a HTTP-EQUIV meta tag in the header of the page. You can set the content to some time in the "past" when serving the page first time.
    Expires
    This tells the browser the date and time when the document will be considered "expired." If a user is using Netscape Navigator,
    a request for a document whose time has "expired" will initiate a new network request for the document.
    An illegal Expires date such as "0" is interpreted by the browser as "immediately." Dates must be in the RFC850 format, (GMT format):
    <META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> Hope this works for you, there are browser dependencies as well.
    vr,
    Sudhakar B.

  • Form field validation: All required data lost when clicking browser-back-button!

    Hi folks,
    I have a big problem using the validation text  field components of Spry when the user must click the browser back button (or clicking a history.back()-Link) because he has  entered a wrong CAPTCHA-code!
    Right now, all the data - only in the required fields - not in the optional  fields!!! - is lost and the user has to enter all data once  again;-(
    Does anybody know why only the data in the  required fields is lost? Is there a nice workaround?
    I really  appreciate a quick answer:-)
    Kind regards from cloudy Germany
    Thomas

    rememberFormInputs('frmlogin', 'input-');
    'frmlogin' should be the id of page, not the name. so on your <form> tag, add the id="frmlogin"
    remove the
    // overload alert
    function alert(str) {
         var el = document.getElementById('alert');
         if (el) {
              el.value += str+"\r\n";
    Its really bad practice to overwrite the alert. and inside the rememberFormInputs remove these lines:
    alert('old value remembered: '+old_value);
    alert('setCookie: '+name + ' = '+value);
    and it should work

  • IE Browser back button goes to two pages back

    I am not using JSPs, using a servlet ABSServlet to display the search page, after entering the search criteris I'm displaying a report page. The report page has a button 'Save As Excel' which open the report in the Excel form. When I click on this button browser asks 'Open' or 'Save'. I clicked on 'Open'. It open the report in excel form in the same page. Now if I press the IE Browser back button it takes me to the Search page instead of the report page.
    Ideally it should go back to the Report page(preiosu page) if I click the back button and not to the previous to previous page. Can someone help?

    You cannot (practically) modify the function of the browser's back button...
    You can patch it though.
    Put in the intermediate (search) page something like
    <script language="Javascript"><!--
    function sendBack()
      wherefrom=history.forward(1); //only valid if the back button has been used. otherwise null
      length=wherefrom.length();//length of 'forward page's url'
      if (history.forward(1).substring(length-4)==".xls") //the back button has been press on a url ending .xls - back from a spreadsheet
        location.href=history.back(1); //go back once more from here
      else
        //this is if the back button was not used or if back button was used from a page that is not an excel spreadsheet;
        //if you write nothing here, the page just display as though this function were not here
    //--></script>
    <body onload="sendback()">Not really a Java solution, but should work.
    Bamkin :-)

  • Disable Browser back Button in OA page

    Hi Experts,
    Can anyone tell me how to disable browser back button in OA page.. Any advice would be appreciable.
    Thanks in advance,
    Sandip

    Hi Reetesh,
    Thanks for your reply but this code gives the following Error:
    non-static method getRootWebBean() cannot be referenced from a static context
    When I tried and kept the following code it solved error but did not work.
    OABodyBean bodyBean = (OABodyBean)pageContext.getRootWebBean();
    String javaS = "javascript:window.history.forward(1);";
    bodyBean.setOnLoad(javaS);
    Thanks and Regards,
    Sandip

Maybe you are looking for

  • How do i put a music icon on my iphone

    how do i put a music icone on my iphone

  • ITunes Match used for 2 computers?

    I am interested in iTunes Match. I am a DJ and I use a Macbook pro for my my primary computer  and a Macbook for a back up. I do not like having to  constantly update my back up computer.  I do not have Lion yet either, so I know I will have to upgra

  • How do I to upgrade from OS 10.5.8?

    I bought a new printer (HP) but the software for the printer is not compatible with my Mac Mini's OS, which is 10.5.8.  It claims to require 10.6 or later OS. I would like to do it myself using the Apple downloads but I have heard that my files could

  • Tree component event action

    Hello There's a page which contains the following 3 components: Input textfield, Button, Tree I made the following settings of them: I set the "event action" at the tree node, and so did I at the button properties. When I click on the button, the act

  • IPad modification in latest patch for rotate lock switch to mute switch

    I have not idea why apple changed the switch function. It is very annoying if you are moving around with the unit and watching as the screen flops around. I think 99% of the users do not place an iPad in a fixed position when operating it, we tend in