I have a main window which call the rad window and when the rad window is closed, it should call main window's call back function which is registered for add_close in the main window.Here is the code snippet
(MainWindow)
function
showNewWindow {
// open radwindow to get new window
var
url =
"/Edit.aspx"
;
var
oWnd = getRadWindow().BrowserWindow.GetRadWindowManager().open(url,
"AddNewEditWindow"
);
// subscribe to the close event for the window
oWnd.add_close(getFieldsFromEditWindow);
}
function
getFieldsFromEditWindow()
{
var
WindowName=
"AddNewEditWindow"
;
var
targWnd = getRadWindow().BrowserWindow.GetRadWindowManager().getWindowByName(WindowName);
var
editWnd = targWnd.get_contentFrame().contentWindow;
var
data_From_EditWindow=editWnd.getDetails();
}
Edit.aspx ( RadWindow)
function
getDetails()
{
return
"HI"
;
}
getDetails() function in Edit.aspx is called successfully in chrome and mozilla but in IE it is failing
when the main window is trying to call the getDetails() in call back function "getFieldsFromEditWindow()"
after the rad window is closed.
It is throwing me an error "Object doesn't support property or method 'getDetails'"
Please help me in fixing this.