View Full Version : Web page dialog in Firefox

08-13-2005, 01:45 PM

in the popular rich text editor FCK web page dialogs are being used instead of ordinary pop-ups. Because I like the look of it, I was looking on the internet how to do this and found the following code.

<SCRIPT language="vbscript">
dim oDlgWindow

Sub webdialog(page)
Set oDlgWindow = window.showModalDialog(page, window, "dialogheight:180px; dialogWidth:320px; status:no;")
End Sub

Since this is written in VB script, the dialogs don't work in Firefox. However, when using FCK editor with Firefox, the dialogs do work. So it should be possible. I went trough the code of FCK, but because of the large amount of code I just couldn't find how this is done. Google also didn't get me much results.

So does anyone here know how to get web page dialogs, to work in Firefox?

Thanks very much,

cheers michiel

08-13-2005, 05:43 PM
Try using JavaScript's modal window.