I have an UpdatePanel that contains a timer and an infragistics webtree and when the timer fire the data is being postback (great). I also have a link that pops up a window using good old javascript window.open(...) (great). Here's the not so great. When
the postback occurs and a node in the tree is selected with the javascript window open, it goes to the background. I tried turning off the timer (Timer1.Enabled=false), but that didn't work. Any suggestion is welcome
Denver Drunk...
Member
13 Points
25 Posts
UpdatePanel Postback causes Popup Window to lose Focus
Sep 18, 2007 02:29 AM|LINK
I have an UpdatePanel that contains a timer and an infragistics webtree and when the timer fire the data is being postback (great). I also have a link that pops up a window using good old javascript window.open(...) (great). Here's the not so great. When the postback occurs and a node in the tree is selected with the javascript window open, it goes to the background. I tried turning off the timer (Timer1.Enabled=false), but that didn't work. Any suggestion is welcome
<script runat="server">
protected stopTimer() {
timer1.Enabled=false;
}
</script>
<script type="text/javascript">
function stopTheTimer() {
stopTimer();
}
</script>
Jin-Yu Yin -...
All-Star
21280 Points
1824 Posts
Re: UpdatePanel Postback causes Popup Window to lose Focus
Sep 19, 2007 09:13 AM|LINK
Hi,
You cann't invoke method at server side directly in javascript.
To stop AJAX Timer contorl,you can do it like this:
Best Regards,
Jin-Yu Yin
Microsoft Online Community Support
Denver Drunk...
Member
13 Points
25 Posts
Re: UpdatePanel Postback causes Popup Window to lose Focus
Sep 19, 2007 07:41 PM|LINK
Thanks...that makes total sense
sachin_bca
Member
38 Points
44 Posts
Re: UpdatePanel Postback causes Popup Window to lose Focus
Aug 27, 2008 07:23 AM|LINK
Pawan_Mishra
Star
8869 Points
1293 Posts
Re: UpdatePanel Postback causes Popup Window to lose Focus
Aug 27, 2008 07:54 AM|LINK
Hi , Check out this article which explains exactly what is $get() and $find() method of asp.net ajax :- http://mattberseth.com/blog/2007/08/the_everuseful_get_and_find_as.html .
Pawan Mishra
Moving from Asp.Net to WPF and SilverLight .....
.Net 360°