Trying to restart an AJAX timer running in the parent window whenever a RadWindow is closed with JavaScript.
Here's a snippet of the js code on the window page:
var oWindow = GetRadWindow();
var timer = find$("ctl00_cphContent_RefreshTimer1");
timer._startTimer();
oWindow.Close();
The window close works fine. The find$ code works on a standard page, but I can't locate the parent page's timer from the windowed page's JavaScript. Any idea what I can use to reference the timer control from inside the window? I tried all the basics I could think of (e.g. document.GetElementById)
Assuming I either need to drill back using a .parent or drill down from a window. but wasn't sure where to start.
Thanks
- Brad
Here's a snippet of the js code on the window page:
var oWindow = GetRadWindow();
var timer = find$("ctl00_cphContent_RefreshTimer1");
timer._startTimer();
oWindow.Close();
The window close works fine. The find$ code works on a standard page, but I can't locate the parent page's timer from the windowed page's JavaScript. Any idea what I can use to reference the timer control from inside the window? I tried all the basics I could think of (e.g. document.GetElementById)
Assuming I either need to drill back using a .parent or drill down from a window. but wasn't sure where to start.
Thanks
- Brad