Delay loading of control?

G

google

I have a page that requires 2 controls to be loaded... one is a Java
Applet, the other is an ActiveX control.

The ActiveX control is dependent on the Java applet being loaded first.
Here is an example of the code I'm using...

<HTML>
<HEAD>

<SCRIPT LANGUAGE="JavaScript"><!--
function appletload () { window.location.href = "launch.jnlp"; }
//--></SCRIPT>

</HEAD>

<BODY onLoad="appletload()">


<p><OBJECT id=nsvplayx
codeBase=http://www.nullsoft.com/nsv/embed/nsvplayx_vp3_mp3.cab#Version=-1,-1,-1,-1

height=480 width=640 border=0
classid=clsid:C5E28B9D-0A68-4B50-94E9-E8F6B4697514>
<PARAM NAME="Location" VALUE="http://localhost:2001/;stream.nsv" ref>
<param name="_Version" value="65536">
<param name="_ExtentX" value="16933">
<param name="_ExtentY" value="12700">
<param name="_StockProps" value="0">
<param name="Bandwidth" value>

<embed type="application/x-nsv-vp3-mp3" width=640 height=480
codebase="http://www.nullsoft.com/nsv/embed/nsvmoz_vp3_mp3.xpi"
location="http://localhost:2001/;stream.nsv"></embed></object>
</body>


What I need is some means to load the activex control - nsvplayx AFTER
the Java applet has loaded. If thats not possible, A simple delay for
10 seconds or so - stopping the activex control from loading while the
Applet downloads and initializes should suffice.

Any ideas? Thanks as always!
 
L

Lee

Nathan said:
use setTimer('functionFoo()',10);

to load it 10 seconds from whenever it's called.

When responding to a post, you should quote enough of it to allow
people to know what you're talking about without having to go back
and read the original.

You should also put a little more effort into knowing what you're
talking about. The "setTimeout()" function accepts the delay in ms,
so a ten second delay would be:

setTimeout("functionFoo()",10000);
 
G

google

Lee said:
setTimeout("functionFoo()",10000);

OK, but how do I place the call to the activex control...

<p><OBJECT id=nsvplayx
codeBase=http://www.nullsoft.com/nsv/embed/nsvplayx_vp3_mp3.cab#Version=-1,-1,-1,-1

height=480 width=640 border=0
classid=clsid:C5E28B9D-0A68-4B50-94E9-E8F6B4697514>
<PARAM NAME="Location" VALUE="http://localhost:2001/;stream.nsv" ref>
<param name="_Version" value="65536">
<param name="_ExtentX" value="16933">
<param name="_ExtentY" value="12700">
<param name="_StockProps" value="0">
<param name="Bandwidth" value>
<embed type="application/x-nsv-vp3-mp3" width=640 height=480
codebase="http://www.nullsoft.com/nsv/embed/nsvmoz_vp3_mp3.xpi"
location="http://localhost:2001/;stream.nsv"></embed></object>

....into a function? Whats the syntax to make all of that a single
function?

Thanks again! :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top