View Full Version : DHTML Modal window v1.1

01-21-2009, 04:52 PM
1) Script Title: DHTML Modal window v1.1

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/dhtmlmodal.htm

3) Describe problem:

I have set up an iframe window which all works fine on IE, FF and Google Crome. The page included in the iframe has a close button which works in IE and Google Crome, but not in FF. I also noticed that there is no close button on the Modal window - not sure how I lost this as it is on the sample page at DD.

Code can be viewed at: http://www.theboys.co.za/nh/

The close window code I used is as follows:


Possible this code is incorrect.

Thanks for any help with this awesome program.

01-21-2009, 05:08 PM
Okay, I managed to get the close button back on the top right of the Modal window. I recopied the code into the dhtmlwindow.js file and all is working like a dream. Thanks for the awesome code.

01-21-2009, 06:05 PM
What I am trying to do is close one Modal window & opening another from a menu in the first.

onClick="ajaxwin=parent.dhtmlmodal.open('AfritanTannery', 'iframe', 'dawnside.php', 'Afritan Tannery', 'width=600,height=300,left=150px,top=10px,resize=0,scrolling=1'); parent.dawnside.hide();"

This works in IE and Google Chrome, but in FF, the first window stays open.

Any way of getting this to close Modal window one in FF?