PDA

View Full Version : Big problem with DHTML modal window



antares99
03-20-2008, 11:31 AM
1) Script Title: DHTML modal window

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

3) Describe problem:
Hello
The bug appear with option "iframe content/ auto load". If the visitor close the DHML windows BEFORE the page has finished to load, the "veil" APPEARS AGAIN and it's impossible to make it disapear.

I've noticed this bug on IE7 and Mozilla

You can test on the demo page : http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/dhtmlmodal.htm
Try to close as fast as you can (before the end of the page load) the DHTML popup. You ll see the "veil" appear again and you ll be blocked :(

Do you have any idea how to fix this ?

PS: sorry for my bad english ;)

Regards
Antares

ddadmin
03-20-2008, 08:07 PM
I'm not seeing this actually. By closing the DHTML window, I gather you mean click on the "x" icon before the page has fully loaded? I did that in IE7 and FF2, and the veil that was dismissed didn't come back.

antares99
03-21-2008, 06:54 AM
By closing the DHTML window, I gather you mean click on the "x" icon before the page has fully loaded?
Yes exactly!
It s wierd because i ve test on many computer and web browsers.. and the problem apear each time.
Mabye the page load too fast , that s why u dont see the problem.
Can test on this page (which ll load slow): http://www.planetedugratuit.com/demo-modal.htm

Thank you for your help :o

antares99
03-25-2008, 07:59 AM
Anybody else see the problem ?

Thank you

ddadmin
03-25-2008, 07:36 PM
Ah ok I see the problem now. Inside modal.js, try removing the below two lines:


if (typeof recalonload!="undefined" && recalonload=="recal" && d.scroll_top==0)
d.addEvent(window, function(){dhtmlmodal.loadveil()}, "load")