File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Java Plug-in throws JScript Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Applets
Reply 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: 1863
can u pleaze post ur html code here?
also , did u try on Netscape browser? (may be on newer versions)?
regards
maulin


1. Have fun @ http://faq.javaranch.com/java/JavaRaq
2. Looking for simple infix2postfix conversion and postfix evaluation package? Click here
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.
 
 
subject: Java Plug-in throws JScript "Object Expected" error
 
Threads others viewed
on_Click gives "Object expected" error
Error: Object expected,Char 1 Code 0
Error with running batch file from Java class
Question on using window.opener
Putting up Textbox for user log in
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com