Solved

What is the Object-tag equivalent of the MayScript attribute

Posted on 2002-05-01
5
444 Views
Last Modified: 2013-11-19
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?
0
Comment
Question by:garyz31
  • 3
  • 2
5 Comments
 
LVL 92

Expert Comment

by:objects
ID: 6985191
Add the mayscript parameter:
<PARAM NAME="mayscript" VALUE="true">
0
 
LVL 1

Author Comment

by:garyz31
ID: 6986004
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
 
LVL 92

Accepted Solution

by:
objects earned 75 total points
ID: 6987463
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
 
LVL 1

Author Comment

by:garyz31
ID: 6987492
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
 
LVL 92

Expert Comment

by:objects
ID: 6987582
No worries :-)

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

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
more than one jdk and one jre 1 42
How to convert String matching to regex in java 4 34
Java exception bubble up 2 18
login form jsp example 2 26
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This video teaches viewers about errors in exception handling.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

822 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question