I am trying to create a custom dialog. I first tried the example given here
http://demos.telerik.com/aspnet-ajax/editor/examples/customdialogs/defaultcs.aspx
and I got it working.
Then I swapped in my own aspx page and tried to hook it up in the same way. My aspx page is a frameset with 2 frames. The "submit" button is on the first frame. On this page I added the javascript to close the dialog and return a value. This is not working and the dialog stays open.
I traced the problem to the javascript function getRadWindow().
function getRadWindow()
{
if (window.radWindow)
{
return window.radWindow;
}
if (window.frameElement && window.frameElement.radWindow)
{
return window.frameElement.radWindow;
}
return null;
}
It is returning null as both if statements resolve to false. I have dug around with Firebug to see if I can find a way to get the Rad Window but to no avail. Any ideas on how can I get this function to work when it is called in a frame in the dialog?
http://demos.telerik.com/aspnet-ajax/editor/examples/customdialogs/defaultcs.aspx
and I got it working.
Then I swapped in my own aspx page and tried to hook it up in the same way. My aspx page is a frameset with 2 frames. The "submit" button is on the first frame. On this page I added the javascript to close the dialog and return a value. This is not working and the dialog stays open.
I traced the problem to the javascript function getRadWindow().
function getRadWindow()
{
if (window.radWindow)
{
return window.radWindow;
}
if (window.frameElement && window.frameElement.radWindow)
{
return window.frameElement.radWindow;
}
return null;
}
It is returning null as both if statements resolve to false. I have dug around with Firebug to see if I can find a way to get the Rad Window but to no avail. Any ideas on how can I get this function to work when it is called in a frame in the dialog?