473,614 Members | 2,361 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Delay loading of control?

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="JavaS cript"><!--
function appletload () { window.location .href = "launch.jnl p"; }
//--></SCRIPT>

</HEAD>

<BODY onLoad="appletl oad()">
<p><OBJECT id=nsvplayx
codeBase=http://www.nullsoft.co m/nsv/embed/nsvplayx_vp3_mp 3.cab#Version=-1,-1,-1,-1

height=480 width=640 border=0
classid=clsid:C 5E28B9D-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="_StockPro ps" value="0">
<param name="Bandwidth " value>

<embed type="applicati on/x-nsv-vp3-mp3" width=640 height=480
codebase="http://www.nullsoft.co m/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
4 5167
use setTimer('funct ionFoo()',10);

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

Jul 23 '05 #2
Lee
Nathan said:

use setTimer('funct ionFoo()',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("fun ctionFoo()",100 00);

Jul 23 '05 #3

Lee wrote:

setTimeout("fun ctionFoo()",100 00);


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

<p><OBJECT id=nsvplayx
codeBase=http://www.nullsoft.co m/nsv/embed/nsvplayx_vp3_mp 3.cab#Version=-1,-1,-1,-1

height=480 width=640 border=0
classid=clsid:C 5E28B9D-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="_StockPro ps" value="0">
<param name="Bandwidth " value>
<embed type="applicati on/x-nsv-vp3-mp3" width=640 height=480
codebase="http://www.nullsoft.co m/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
Can anyone help me with this? How do I code this to a function?

go****@ghosthou nds.com wrote:
Lee wrote:

setTimeout("fun ctionFoo()",100 00);
OK, but how do I place the call to the activex control...

<p><OBJECT id=nsvplayx

codeBase=http://www.nullsoft.co m/nsv/embed/nsvplayx_vp3_mp 3.cab#Version=-1,-1,-1,-1
height=480 width=640 border=0
classid=clsid:C 5E28B9D-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="_StockPro ps" value="0">
<param name="Bandwidth " value>
<embed type="applicati on/x-nsv-vp3-mp3" width=640 height=480
codebase="http://www.nullsoft.co m/nsv/embed/nsvmoz_vp3_mp3. xpi"
location="http://localhost:2001/;stream.nsv"></embed></object>


Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4619
by: Donald Canton | last post by:
Hi all, I've got a script that caches 52 card images and displays the appropriate card based on user input. It works fine, except when the page loads for the first time the results are unpredictable until a few seconds elapse. My guess is that it's taking time to cache the 52 images. Is there any way to delay the loading of the page until all 52 images are cached? Thanks. dc
0
1543
by: Lecture Snoddddgrass | last post by:
Hi, I noticed that my WinForms app was taking a while to start up. I stepped through the code to find out which line was causing the delay. The delay is occurring within one of my UserControls whose designer-generated InitializeComponent() method instantiates a web browser control and eventually calls EndInit() on it. It's that EndInit() call that takes several seconds to complete. What's odd is that my application makes extensive use...
5
7613
by: http://links.i6networks.com | last post by:
I need to delay something either an image or a table from loading for 2-5 seconds. So far I have not find a good method. I need the rest of the page, even the codes after the delayed image, to be displayed in real time.
10
1865
by: cosmic foo | last post by:
I have a page with about 100 images of about 10k each. where a typical img tag looks like this, <img src="item001.jpg" height="70" alt="" onMouseOver="showPic(this)" border="0"> Not all the images need to be viewed at once, depending on what category is selected, only about 10 images are seen at any one time. I hide and show categories of images by setting a div container display:none/block or visibility:hidden/visible. Even though the...
11
21241
by: Maheshkumar.R | last post by:
Hi groups, How i can introduce some milliseconds delay in application. How i can do achieve this... let me clearly say... (1) I'm displaying slices of medical images. For framerate - for this i'm loading 2+ slices, 4+ slices in loop to have cine impact..-> Ok working (2) But if i want to reduce the speed...how i can introduce delay inbetween
7
2934
by: mfeingold | last post by:
I am working on a system, which among other things includes a server and a ..net control sitting in an html page and connected to the server. I ran into a couple of problems, you guys might have some insight about. 1) It takes 20 sec or so to open a tcp socket from the client to the server. It just sits in the TcpClient.conect waiting for something. When I run the same control from a windows application it connects right away and works...
8
4226
by: Craig Williamson | last post by:
I'm trying to write a time delay loop in Borland C 3.1 (for legacy code) which has an accuracy of about 0.1ms. This change is due to a hardware change and the software is now running too fast to take proper readings. I have been using delay(1) in the past but it does not have the accuracy that I need for this situation. Does anyone know of a useful C function which can be used to create the time delay? If anyone could help that would...
1
2361
by: =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?= | last post by:
Hi, i am looking for a way to clear and fill a listview and right after a treeview nearly flicker and delay free. The TreeView and Listview contain Images and about 1000 Items. What can someone recommend me how i can do this, with as less delay and flicker as possible,... What are the right steps and methdods for this. What to do before clearing tree- and listview and what to do while
0
8179
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8124
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8621
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8427
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6087
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4119
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2565
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1712
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1421
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.