PDA

View Full Version : Browser Back Button on ready



sfwalter
30 Nov 2007, 5:49 AM
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.

devnull
30 Nov 2007, 11:13 AM
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.