J
johkar
My child window has this script. "temp" is simply the value of the
select list which I am passing onchange. I get a permission denied
error in IE when executing selectOption.
function selectOption(temp){
if(temp == ''){
alert('You have not made a selection. Please make a selection
to continue.');
return false;
}
else
{
opener.setValues(temp);
window.close();
}
}
I launched the window with the following script from the main window:
function newWindow(myurl,mywidth,myheight,resize) {
var myDate=new Date();
var myTime=myDate.getTime();
var URL=(myurl.indexOf('?') > -1)?myurl + '&time=' + myTime:myurl +
'?time=' + myTime;
var w=mywidth;
var h=myheight;
var winname='popWindow';
var winl = (screen.width - w) / 2, wint = (screen.height - h) / 2;
var
winresize=(resize=='resize')?'scrollbars=yes,resizable=yes':'scrollbars=no,resizable=no';
var winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl +
',toolbar=no,status=no,menubar=no,' + resize;
if(win==null || win.closed)//only launch window if it doesn't already
exist
win=window.open(URL, winname, winprops);
win.focus()
document.onclick=winfocus;//set method to bring window into focus
}
select list which I am passing onchange. I get a permission denied
error in IE when executing selectOption.
function selectOption(temp){
if(temp == ''){
alert('You have not made a selection. Please make a selection
to continue.');
return false;
}
else
{
opener.setValues(temp);
window.close();
}
}
I launched the window with the following script from the main window:
function newWindow(myurl,mywidth,myheight,resize) {
var myDate=new Date();
var myTime=myDate.getTime();
var URL=(myurl.indexOf('?') > -1)?myurl + '&time=' + myTime:myurl +
'?time=' + myTime;
var w=mywidth;
var h=myheight;
var winname='popWindow';
var winl = (screen.width - w) / 2, wint = (screen.height - h) / 2;
var
winresize=(resize=='resize')?'scrollbars=yes,resizable=yes':'scrollbars=no,resizable=no';
var winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl +
',toolbar=no,status=no,menubar=no,' + resize;
if(win==null || win.closed)//only launch window if it doesn't already
exist
win=window.open(URL, winname, winprops);
win.focus()
document.onclick=winfocus;//set method to bring window into focus
}