By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,621 Members | 1,856 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,621 IT Pros & Developers. It's quick & easy.

Delay loading of control?

P: n/a
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!

Jul 23 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
use setTimer('functionFoo()',10);

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

Jul 23 '05 #2

P: n/a
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);

Jul 23 '05 #3

P: n/a

Lee wrote:

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! :)

Jul 23 '05 #4

P: n/a
Can anyone help me with this? How do I code this to a function?

go****@ghosthounds.com wrote:
Lee wrote:

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>


Jul 23 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.