aspose file tools*
The moose likes Applets and the fly likes Java Plug-in throws JScript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Java Plug-in throws JScript "Object Expected" error" Watch "Java Plug-in throws JScript "Object Expected" error" New topic
Author

Java Plug-in throws JScript "Object Expected" error

Heitor Bembom
Greenhorn

Joined: Jul 11, 2000
Posts: 10
I am trying to embed an applet in a page using the object tag. When the page load, I get a JScript (not JavaScript) runtime error saying "Object expected." It is nothing like your regular JavaScript error dialog. It looks more like a JS alert pop-up, with no line numbers or anything else. The applet runs properly though.
All machines I've tested on are Win2K. I get this pop-up in some machines but not in others. It is not related to browser settings.
I am wondering if someone has ever seen this problem before and, if so, if they were able to solve it.
Thank You,
Heitor
Heitor Bembom
Greenhorn

Joined: Jul 11, 2000
Posts: 10
Just to clarify it more. It is also not a JavaScript issue, since I stripped the page of all the code and just left the HTML code for the object tag in there. Also, the applet is not calling any JavaScript methods or triggering any browser events.
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
can u pleaze post ur html code here?
also , did u try on Netscape browser? (may be on newer versions)?
regards
maulin
Heitor Bembom
Greenhorn

Joined: Jul 11, 2000
Posts: 10
Here it goes....
Netscape is not supported by my client.
<HTML>
<HEAD>
<TITLE></TITLE>
<!--version 1.2.3-->
</HEAD>
<BODY bgColor=white leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">

<OBJECT name=dRev classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH=1 HEIGHT=1>
<PARAM NAME=CODE VALUE="DMDDR.class">
<PARAM NAME=ARCHIVE VALUE="DReview.jar">
</OBJECT>
</body>
</HTML>
ashraf khandwalla
Greenhorn

Joined: Jan 13, 2012
Posts: 1
I know it has been a long long time. Did you ever resolve this issue? I'm seeing the same issue on some of my systems.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java Plug-in throws JScript "Object Expected" error