Solved

What is the Object-tag equivalent of the MayScript attribute

Posted on 2002-05-01
5
438 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
topping1 challenge 7 72
Checkbox and ListView in Android Layout 4 56
compre toata in where clue oracle 4 55
Where to store the queries for modification of table 4 53
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
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 tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

914 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now