JayStang
09-07-2006, 07:29 PM
Hi guys,
I'm using the following code for opening a Modal Dialog Box.
function showdialog(url){
if (window.showModalDialog) {
var _R = window.showModalDialog(url, self);
} else{
MovePopup = window.open(url, 'MovePopup', "modal=yes,menubar=no,scrollbars=no,status=no,titlebar=no,toolbar=no,height=125,width=300'");
MovePopup.focus();
}
}
this works to open in both IE and Firefox. The problem is once the popup is open there is a form that when submitted sets back hidden variables that were in the 'parent' window. for IE i'm using 'window.dialogArguments' to set the variables back.
My problem is this is not supported by FF. How do i do this with FF? I've tried different combinations of 'parent' and 'window' etc... and nothing seems to work.
Thanks in advance!
I'm using the following code for opening a Modal Dialog Box.
function showdialog(url){
if (window.showModalDialog) {
var _R = window.showModalDialog(url, self);
} else{
MovePopup = window.open(url, 'MovePopup', "modal=yes,menubar=no,scrollbars=no,status=no,titlebar=no,toolbar=no,height=125,width=300'");
MovePopup.focus();
}
}
this works to open in both IE and Firefox. The problem is once the popup is open there is a form that when submitted sets back hidden variables that were in the 'parent' window. for IE i'm using 'window.dialogArguments' to set the variables back.
My problem is this is not supported by FF. How do i do this with FF? I've tried different combinations of 'parent' and 'window' etc... and nothing seems to work.
Thanks in advance!