Solved

"Unspecified error" in IE 6 and IE 7

Posted on 2007-03-20
7
360 Views
Last Modified: 2013-12-08
I have a web site with some heavy-duty Javascript stuff going on... in IE, I'm getting an "Unspecified error" (but everything seems to work perfectly). In Firefox, everything works perfectly and there are no errors or warnings at all from JS.

The exact error message is "Unspecified error" and it refers to line 1, character 36 of my code.

These are the very first two lines of my file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">


Interestingly, character 36 is the "X" in "XHTML"... could it be complaining because my Javascript libraries aren't XHTML compliant somehow?

This all seems like a shady IE bug ;-) but I would like to make the error message indicator go away, if possible. It makes the customers uncomfortable...
0
Comment
Question by:pnoeric
7 Comments
 
LVL 29

Expert Comment

by:Badotz
Comment Utility
Put

debugger;

onto its own line and step through the code to see the real eror.
0
 
LVL 1

Expert Comment

by:jenzhang2000
Comment Utility
What js library are you using?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">  shouldn't cause any problem for a regular html page.
0
 
LVL 15

Expert Comment

by:stanscott2
Comment Utility
Is your Javascript in an external file?  If it is, line 1 refers to the Javascript file, NOT the HTML page.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:pnoeric
Comment Utility
Hm. I have probably 5 Javascript files floating around in there, so it's very difficult to isolate the issue. I think it might be related to the prototype library, since the error is only triggered when I call a function to bring a layer forward. Hm. I'll look into upgrading prototype, maybe.

Any other suggestions to debug? When I use the debugger; command, I get an error from the script debugger: "unknown exception." It also says it's unable to display the script where the error occurred. Useless!!!
0
 
LVL 29

Accepted Solution

by:
Badotz earned 250 total points
Comment Utility
Yeah, right. Make sure you've enabled debugging in IE

Display all script errors...
Display a notification...

etc.
0
 

Author Comment

by:pnoeric
Comment Utility
Aha. I ended up using the debugger to step through everything from the start, and that got me to the place I needed to be. Turns out that this:

   $('myobj').filters.item('DXImageTransform.Microsoft.Alpha').opacity = 100;

is not valid, but this:

   $('myobj').style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity=100);';

is okay... grr IE makes me crazy :-)

thanks for your help.

E

0
 
LVL 29

Expert Comment

by:Badotz
Comment Utility
No worries - glad to help.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

763 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

13 Experts available now in Live!

Get 1:1 Help Now