Results 1 to 5 of 5

Thread: Big problem with DHTML modal window

  1. #1
    Join Date
    Mar 2008
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Big problem with DHTML modal window

    1) Script Title: DHTML modal window

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...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/dynamici...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

  2. #2
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    antares99 (03-21-2008)

  4. #3
    Join Date
    Mar 2008
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ddadmin View Post
    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

  5. #4
    Join Date
    Mar 2008
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Anybody else see the problem ?

    Thank you

  6. #5
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Ah ok I see the problem now. Inside modal.js, try removing the below two lines:

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

  7. The Following User Says Thank You to ddadmin For This Useful Post:

    antares99 (05-02-2008)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •