Hi,
How do I invoke a javascript function in the parent page?
here is my code:
How do I invoke a javascript function in the parent page?
here is my code:
function
RefreshParent()
{
var oWindowMan= parent.parent.GetRadWindowManager();
var oWndResManager = oWindowMan.getActiveWindow();
if(oWndResManager != null)
{
//Call refresh function
var iframeToRefresh = oWndResManager.get_ContentFrame();
iframeToRefresh.contentWindow.InvokeAJAXRadTreeReload();
}
}
in the line "iframeToRefresh.contentWindow.InvokeAJAXRadTreeReload();"i get the error that Object doesn't support this property or method. but the function exists in the parent page.
Is anything wrong with the code, or is there any other way of doing that?
Regards,
Catarino