Does Embed or Object Tag have "events"?

  • Thread starter Thread starter Anil Gupte
  • Start date Start date
A

Anil Gupte

I want to embed using an embed tag or object tag (like YouTube or others do)
to embed a video file in a web page. I want to know if there is an event
related to the video being done playing. Also are there other events?

Thanx in advance,
 
Anil Gupte said:
I want to embed using an embed tag or object tag (like YouTube or others
do) to embed a video file in a web page. I want to know if there is an
event related to the video being done playing. Also are there other
events?


ActiveX controls embedded into Web pages can have events. These events are
listed in the documentation and they can be handled using client-side
JavaScript/JScript/VBScript.
 
But how do I get an event? Actually, what I want to do is to use Embed or
Object to show a Flash Video or a Windows Media file. When the video
finished playing, I want to play the next video or redirect to another page.
So, I want to capture the "Done Playing" or whatever event. I could look
for an EOF in the stream, but I am not sure how to do that?

Thanx,
 
I only have part of the answer. In IE the script tag supports FOR and EVENT keywords. You can handle a custom ActiveX event in an OBJECT tag like this:

<SCRIPT FOR="MyObjectId" EVENT="MyEvent">
</SCRIPT>

The only part I couldn't figure out is how to retrieve the event parameter if there was one. Anyone know how???

Paul Chan

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 
Back
Top