Solved

What is the Object-tag equivalent of the MayScript attribute

Posted on 2002-05-01
5
435 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
Comment Utility
Add the mayscript parameter:
<PARAM NAME="mayscript" VALUE="true">
0
 
LVL 1

Author Comment

by:garyz31
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
No worries :-)

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

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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 Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

744 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

12 Experts available now in Live!

Get 1:1 Help Now