Modal Dialog Interferes with Windows Media Player

We have a problem where a modal dialog is preventing Windows Media Player from playing a sound.  What’s interesting is that it only does it when the modal dialog is launched by a child window.  If the modal dialog is launched by the parent
window, the sound plays without issue.

Consider the following code…


<script>

	var child = window.open("child.htm");

        window.setTimeout("window.showModalDialog('child.htm');", 5000);
        window.setTimeout("child.showModalDialog('child.htm');", 15000);

</script>

First, we program Windows Media Player to loop a sound.  Then open a child window and set two timers.  5 seconds later, the main window launches a modal dialog – the sound continues to loop.  (close the dialog)  10 seconds after that,
the child window launches a modal dialog – and the sound stops.  Once the dialog is closed, the sound resumes.

For a live demo…  http://curtisdehaven.com:5000/ieissue/

What’s up with that?

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s