Link to home
Start Free TrialLog in
Avatar of A91627
A91627

asked on

Modal Dialog window in firefox? Not compatible with window.showModalDialog

Hi all experts,

I having a problem with modal dialog windows in firefox. Currently i use showModalDialog in javascript and it work fine in IE. But when it come to firefox, it become useless.

Could any 1 give me advise how to write the script to show modal dialog in firefox?
I had read some documentation in mozilla, and i know there is a method that firefox support to open modal dialog form which is window.openDialog. However, when i use this method in my javascript with firefox, it seem not work. and seem like something to do with UniversalBrowserWrite Privilege.

May I know what is the UniversalBrowserWrite Privilege?
Is there any other method to use for open modal dialog in firefox? or any other substitution way to do this?

I need it to popup as a modal dialog window and return some result back to the parent window to process.

I'm using Windows XP Professional SP2, IIS5.1, ASP.NET, .NET Framework 2.0, IE and firefox for environment testing.

Thanks for everything...

Regards,
fall
Avatar of bugs021997
bugs021997
Flag of India image

showModalDialog functionality can be acheived by window.open method

<SCRIPT TYPE="text/javascript">
window.open('bugs.html','','modal=yes');
</script>

You can specify the width and height...


Check this site for code...http://www.subimage.com/dhtml/subModal/
<SCRIPT TYPE="text/javascript">
window.open('bugs.html','','chrome,centerscreen,dependent=YES,dialog=no,resizable=NO,scrollbars=NO,location=0,status=0,menubar=0,toolbar=0,width=200px,height=200px,modal=yes');
</script>

this code perfectly work for mozilla firefox 2.0.0.3
ASKER CERTIFIED SOLUTION
Avatar of bugs021997
bugs021997
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial