applet in a webform

  • Thread starter Thread starter Bobby G
  • Start date Start date
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
 
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


.
 
Back
Top