Results 1 to 3 of 3

Thread: DHTML Modal window v1.1 onClose problem

  1. #1
    Join Date
    Oct 2008
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default DHTML Modal window v1.1 onClose problem

    1) Script Title: DHTML Modal window v1.1

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

    3) Describe problem: this is a followup to a previous problem (DHTML Modal window v1.1 + FLV file in iFrame) basically in FFox (3.0.3) a video played in the modal window can be heard but not seen.

    This is caused by using 'overflow: auto;' in my CSS.
    (please don't say "so don't use overflow/auto" )

    To work around this I use getElementById to change overflow 'auto' to 'hidden', play the video - which now WORKS ! - then reset 'hidden' back to 'auto' - which doesn't work. Here's my example :
    http://www.dyslexia-international.org/ONL/FR/S1-FFT.htm
    (I have to press F5 to get the scrollbars back)

    I've also tried reload/refresh the parent window, but that only seems to work on normal windows - not modal ones.
    http://www.dyslexia-international.or...FR/S1-FFT2.htm

    Thanks again for any help you can give

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

    Default

    Hmm so overflow:auto only breaks the script when viewed on your page right? The demo on DD also uses "auto", and from what I recall, it works with your video without obscuring anything.

    What about overflow:scroll?
    DD Admin

  3. #3
    Join Date
    Oct 2008
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I'd tried overflow:scroll as well which didn't work - same result
    http://www.dyslexia-international.or...FR/S1-FFT3.htm

    PS. my overflow:auto/scroll is for the #maincontent column of the parent page, not the parameter in dhtmlmodal.open

    Am I doing something wrong in the onclose() part in S1-FFT.htm above ?
    I don't event get an alert - first line in onclose() code.

    Thanks

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
  •