What is the Object-tag equivalent of the MayScript attribute

When I use an <Applet> tag I am able to make calls to javascript from my applet using the JSObject.  This doesn't work when I use an <Object> tag, I get a nullpointerexception when I try to execute a call.  

Any idea about what causes this?
LVL 1
garyz31Asked:
Who is Participating?
 
objectsConnect With a Mentor Commented:
What is used for the <applet> tag depends whether the plugin is selected as the default JVM. If it isn't, then the MS VM is used.
The <object> tag loads whatever the classid maps to which is generally a version of the plugin.
0
 
objectsCommented:
Add the mayscript parameter:
<PARAM NAME="mayscript" VALUE="true">
0
 
garyz31Author Commented:
Objects:

Am I correct in concluding that when Internet Explorer loads a page containing an <Applet> tag, it uses the Sun JRE, and when it loads an applet referenced by an <Object> tag, it uses the Microsoft VB?  This would explain why I was able to load an applet from a jar last week.
0
 
garyz31Author Commented:
It turns out that the classCastExceptions were actually being caused by errors in my server pages.  A the time I was switching from <Applet> to <Object>, I was also moving my server pages to my hosting service.

The MayScript param fixed the other problem with calling javascript.

Thanks
0
 
objectsCommented:
No worries :-)

http://www.objects.com.au
Brainbench MVP for Java 1
http://www.brainbench.com
0
All Courses

From novice to tech pro — start learning today.