Results 1 to 2 of 2

Thread: Browser Back Button on ready

  1. #1
    Ext User
    Join Date
    Apr 2007
    Posts
    379
    Vote Rating
    0
      0  

    Default 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
    3
      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.

Posting Permissions

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