Forum Moderators: open
I am using AJAX to play video in a DIV popup-like window.
Well, it is just some basic AJAX -> the window is displayed as block (when onclick on "Show video") and AJAX output is showned in video (using getElementbyId).
At the bottom of the same window, I have placed a "Hide this video" link that displayed the DIV as "none". It works great (the window disappears) but sound continues to play in the background.
I guess I need to add another javascript function that clear the loaded object (swf file).
Any idea would be appreciated!
Thanks
You could try removing the element [developer.mozilla.org].
If that doesn't work then you can interact with Flash objects from JavaScript [permadi.com].
Andrew