View Full Version : showModalDialog with FF

09-07-2006, 08: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'");

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!

09-07-2006, 09:46 PM
You can't get that level of control of multiple windows using any browser other than IE since the modal dialog is only available in that browser. The only way to do it that is cross browser is to do everything in the one browser window by opening a new div in front and hiding the rest of the page behind a semi-transparent image.