?
Solved

What is the Object-tag equivalent of the MayScript attribute

Posted on 2002-05-01
5
Medium Priority
?
455 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 300 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses
Course of the Month9 days, 14 hours left to enroll

762 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