By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,549 Members | 867 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,549 IT Pros & Developers. It's quick & easy.

Object Expected Error in IE 7, Java 6? prevents pdf from opening in IE browser

P: 1
I got here in search of an answer to this Javascrpt question. I upgraded jave on XP Ie 7, acrobat 5.1 and suddenly can't open any pdf files on web sites using IE.
I see u guys all say, this is a Javscript issue. but how do we, mere mortals who know nothing of anything about Java, scripts, etc, fix this? Is there a programm, does MS have any fix? is there any tweak like in the Registry, or whatever, how do I access anyihint java without in IE 7 without havint to learn Javascript or programing?
**** - email removed

Richard Cornford
n/a Posts September 21st, 2006
12:25 PM

Re: "Object Expected" error in IE, but no error in Firefox or Opera

Steve Chapel wrote: Quote:
Originally Posted by
When I load the page
< Internet
Explorer 7 RC 1, I get the error "Object Expected" at line 174. When I
click on the button, I also get the same error on line 186. This same
HTML and JavaScript works perfectly in Firefox and Opera. How can
I make the code work in IE?

The opening SCRIPT tag uses the TYPE attribute:-


- which is not supported by IE at all. As a result the SCRIPT element's
contents are not processed and all the functions it contains are never
defined. There are the objects that are "expected".

Only changing the value of the TYPE attribute to something IE will
recognise (or removing it entirely) would allow the code to run on IE.



Steve Chapel
n/a Posts September 21st, 2006
12:45 PM

Re: "Object Expected" error in IE, but no error in Firefox or Opera
Jun 15 '07 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
Welcome to TSDN!

I think Acrobat is on version 8 or something. What do you mean by upgrading Java? Java and Javascript are two separate things. The "Object Expected Error" error is a Javascript error.
Jun 15 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.