1. #1
    Ext User
    Join Date
    Apr 2007
    Posts
    379
    Vote Rating
    0
    sfwalter is on a distinguished road

      0  

    Default Browser Back Button on ready

    Browser Back Button on ready


    Hi,

    Currently if a user presses the back button on their browser, the Ext.onReady() executes on the page they go back to. Right now in the onReady() I call an init method to initialize the page.

    Any thoughts on how I can prevent my init method from executing if the user presses the back button? Can I move it to somewhere else so it only gets called if the page is requested vs user pressing the back button?

    thanks, Scott.

  2. #2
    Ext User
    Join Date
    Jul 2007
    Posts
    3,128
    Vote Rating
    0
    devnull has a little shameless behaviour in the past

      0  

    Default


    using browser history buttons goes to the previous/next history location and loads the page just the same as if the url was entered directly, and there is no way to tell the difference (because there really is no difference).
    I am not sure what you are really after here... tell the user not to hit the back button.

Thread Participants: 1