PDA

View Full Version : setTimeout() doesn't start after leaving the page and re-entering it



vicentiu
1 Dec 2010, 11:35 PM
Hi,

I'm using setTimeout() to update some stock quotation on a sencha touch app. The updates work fine but when I leave the browser without closing the page and then I enter again the browser and the page is there open but the updates stop working, I think setTimeout stops working.
Do you have an idea how can I prevent setTimeout() not stopping?

Thank you!
Vicentiu

evant
1 Dec 2010, 11:40 PM
I wasn't able to find any specific information on it, but it seems you aren't the only one: http://stackoverflow.com/questions/2820760/mobile-webkit-browsers-settimeout-and-inactive-pages

vicentiu
2 Dec 2010, 5:20 AM
Thank you,

I was thinking if there is a browser event which is triggered when the application is back on the screen, where I can start again the setTimeout(), or maybe a sencha touch event which a can use.