Forum Moderators: open

Message Too Old, No Replies

Ajax - Playing video in DIV window

Sound continue when close window - Need to clear object

         

tomda

6:33 am on Jun 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

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

colandy

1:14 pm on Jun 4, 2007 (gmt 0)

10+ Year Member



ajaxobjectname.close

Not sure if this would work but a possibility.

Little_G

1:50 pm on Jun 4, 2007 (gmt 0)

10+ Year Member



Hi,

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

tomda

6:02 am on Jun 5, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for your help.
Colandy's suggestion did the trick...
document.getElementbyId(containerid).close;