When I call a javascript to close a radwindow by itseft and want to call a function wrote from parent page , there was an error.
My code block :
var oWindow = null;
if (window.radWindow)
oWindow = window.radWindow;
else
if (window.frameElement.radWindow)
oWindow = window.frameElement.radWindow;
oWindow.close();
if(!window.opener.closed) window.opener.assignTask();
When I run this script there was an error that : window.opener.closed is null
I was try without using radWindow . There was no error. How can't I fix this problem ?
I wan't to ask more that, is there a way to call a button from a page that is opening ?
Thanks very much
My code block :
var oWindow = null;
if (window.radWindow)
oWindow = window.radWindow;
else
if (window.frameElement.radWindow)
oWindow = window.frameElement.radWindow;
oWindow.close();
if(!window.opener.closed) window.opener.assignTask();
When I run this script there was an error that : window.opener.closed is null
I was try without using radWindow . There was no error. How can't I fix this problem ?
I wan't to ask more that, is there a way to call a button from a page that is opening ?
Thanks very much