applet in a webform

B

Bobby G

I have an applet that I instantiate on a web form using an
applet tag such as: <Applet> stuff in here </Applet>


Assume the name of the applet control is 'VIEWER'.

I instantiate the viewer on the webform in a client
browser window like this

var newWindow = open('webformWithViewer');

This creates the new window with the applet as expected.

I want to call a method contained in the viewer right
after I open it, such as :

var newWindow = open('webformWithViewer');
var oViewer = newWindow.Document.Applets[0];

oViewer.DoSomething();


My problem is that the viewer and/or window are not fully
instantiated yet and therefore DoSomething() fails.


How can I wait for the window and viewer to be completely
opened?

Also, is there a way to hide a window on the client?

Your help would be appreciated.

Bobby G
 
B

Bobby G

I will look into that, however, I just have to guess at
the timeout value, correct? Sometimes it won't be long
enough?

Thanks for the info,

Bobby G
-----Original Message-----
use a timeout function with a call back
something like
window.setTimeout ("AddTips()",100); addtips gets called after a
Bobby G said:
I have an applet that I instantiate on a web form using an
applet tag such as: <Applet> stuff in here </Applet>


Assume the name of the applet control is 'VIEWER'.

I instantiate the viewer on the webform in a client
browser window like this

var newWindow = open('webformWithViewer');

This creates the new window with the applet as expected.

I want to call a method contained in the viewer right
after I open it, such as :

var newWindow = open('webformWithViewer');
var oViewer = newWindow.Document.Applets[0];

oViewer.DoSomething();


My problem is that the viewer and/or window are not fully
instantiated yet and therefore DoSomething() fails.


How can I wait for the window and viewer to be completely
opened?

Also, is there a way to hide a window on the client?

Your help would be appreciated.

Bobby G


.
 

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
474,102
Messages
2,570,645
Members
47,245
Latest member
ShannonEat

Latest Threads

Top