Click here to Skip to main content
16,012,468 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
I have used Ajax Timer control in my web page for auto save the data in every 15 sec. When I worked on that page timer work fine and it save data in every 15 sec but when I minimize the window and work on some other stuff then in every 15 sec the window get maximize automatically.
how can I handle?
I want that timer should only enable when I work on that page otherwise it should disable when page is in minimize state.
Posted
Comments
ZurdoDev 24-Apr-13 8:06am    
I'm not sure if there is a way. Possibly if you used setTimeout manually instead of using the timer control. The browser is running code and so it wants the user to be aware.
Joezer BH 24-Apr-13 8:32am    
Good question, I'll be watching for an incoming solution :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900