If you are making an AJAX postback, the HTML inside the UpdatePanel is refreshed. So, all scripts have to be reinitialized? This can be done in PageRequestManager, endRequest() function which can be used to write an init() function to call the js timer again.
If you are making an AJAX postback, the HTML inside the UpdatePanel is refreshed. So, all scripts have to be reinitialized? This can be done in PageRequestManager, endRequest() function which can be used to write an init() function to call the js timer again.
Kindly exxplain in detail or point me to any article... :)
bronxbull
Member
237 Points
255 Posts
javascript timer disappears....why?
Nov 15, 2011 04:08 AM|LINK
I have two sections in my page...SECTION 1(inside an update panel) and SECTION 2
A javascript timer is placed inside SECTION 1
Now when i insert SECTION 2 inside an update panel the javascript timer disappears....why?
vijayst
All-Star
16558 Points
3216 Posts
Microsoft
Re: javascript timer disappears....why?
Nov 15, 2011 04:35 AM|LINK
If you are making an AJAX postback, the HTML inside the UpdatePanel is refreshed. So, all scripts have to be reinitialized? This can be done in PageRequestManager, endRequest() function which can be used to write an init() function to call the js timer again.
http://liteblog.codeplex.com
bronxbull
Member
237 Points
255 Posts
Re: javascript timer disappears....why?
Nov 15, 2011 05:02 AM|LINK
Kindly exxplain in detail or point me to any article... :)
Otomii Lu - ...
Contributor
3065 Points
490 Posts
Microsoft
Re: javascript timer disappears....why?
Nov 17, 2011 02:13 AM|LINK
Hi,
please check the link below:
http://msdn.microsoft.com/en-us/library/bb398976.aspx
Hope helpful