This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

Java Plug-in throws JScript "Object Expected" error

Heitor Bembom

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 Bembom

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: 1873
can u pleaze post ur html code here?
also , did u try on Netscape browser? (may be on newer versions)?
Heitor Bembom

Joined: Jul 11, 2000
Posts: 10
Here it goes....
Netscape is not supported by my client.
<!--version 1.2.3-->
<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>
ashraf khandwalla

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.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Java Plug-in throws JScript "Object Expected" error
It's not a secret anymore!