View Full Version : DHTML Modal window v1.1 onClose problem

11-06-2008, 09:56 AM
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 :
(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.

Thanks again for any help you can give

11-09-2008, 07:08 AM
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?

11-11-2008, 09:32 AM
I'd tried overflow:scroll as well which didn't work - same result

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.