Ehsan Mahpour’s Weblog

Modal dialog box compatibility issue for IE and FireFox

by mahpour on Nov.05, 2006, under HTML/CSS Tips

I use Firefox exclusively and every now and then I come across a site that is crippled. This means that parts of it will not work in Firefox because the site is using some kind of IE only functionality.

One example is the function showModalDialog. This will create a modal pop-up when using IE but because it is not a W3C standard, it is not implemented in Firefox (Mozilla) and will just cause a JavaScript error.

Solution

Please refer to the following url to see an example that uses a javascript file to solve this issue.

http://www.hedgerwow.com/360/dhtml/dialog_window/dialog_window.htm

Unfortunatelly it desn’t work for Firefox 2 (I don’t know yet why)


Leave a Reply

You must be logged in to post a comment.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...