Hi,
I want to change the current window icon url on radio button click.
i have tried that with following code but its not working .
Please suggest for the same.
function test() {
var parentPage = GetRadWindow().BrowserWindow;
var currentwindow = parentPage.GetRadWindowManager().getActiveWindow();
var reportType =2;
iconUrl='../images/icon2.png';
if(reportType==1)
currentwindow .set_iconUrl(iconUrl);
else if (reportType == 2)
currentwindow .set_iconUrl(iconUrl);
else
currentwindow .set_iconUrl(iconUrl);
}
set_iconUrl(iconUrl); this method is working in parent page, where radwindow is defined.
I want to change the current window icon url on radio button click.
i have tried that with following code but its not working .
Please suggest for the same.
function test() {
var parentPage = GetRadWindow().BrowserWindow;
var currentwindow = parentPage.GetRadWindowManager().getActiveWindow();
var reportType =2;
iconUrl='../images/icon2.png';
if(reportType==1)
currentwindow .set_iconUrl(iconUrl);
else if (reportType == 2)
currentwindow .set_iconUrl(iconUrl);
else
currentwindow .set_iconUrl(iconUrl);
}
set_iconUrl(iconUrl); this method is working in parent page, where radwindow is defined.