Click to See Complete Forum and Search --> : <OBJECT> tag


marekk
12-05-2002, 06:29 AM
Hi all,
I hope someone will be able to help we this problem:

Basically, what I want to do is to call a javascript function in the <OBJECT> tag, when the ActiveX content of this tag failed to load.

That means:

<OBJECT CLASSID="some-class-id" ODEBASE="some-codebase">
<PARAM name="some-param" value="some-value">

<!-- If user stop while the ActiveX loading, this part is called -->

AND HERE I WANT TO CALL JAVASCRIPT FUNCTION, IE:

<script>load_failed();</script>

</OBJECT>

But it looks like, tha javascript is not working inside of the object tag. I want this javascript function to be called automatically, without any user input.

Does anybody know how to do it ?
Thanks for any help.

Marek

marekk
12-05-2002, 07:03 AM
Thanks, but it will not solve all the cases.

The code before the end </oject> tag is executed even when user does not confirm the certificate, so he doesn't have to click on the stop button :(

marekk
12-05-2002, 07:29 AM
Great, i overlooked the onError event. Now it works perfectly. Thank you !

Marek