Solved

"Unspecified error" in IE 6 and IE 7

Posted on 2007-03-20
7
378 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 29

Expert Comment

by:Badotz
ID: 18759608
Put

debugger;

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

Expert Comment

by:jenzhang2000
ID: 18759670
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
ID: 18759850
Is your Javascript in an external file?  If it is, line 1 refers to the Javascript file, NOT the HTML page.
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

Author Comment

by:pnoeric
ID: 18766947
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
ID: 18766966
Yeah, right. Make sure you've enabled debugging in IE

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

etc.
0
 

Author Comment

by:pnoeric
ID: 18767173
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
ID: 18767225
No worries - glad to help.
0

Featured Post

SendBlaster Pro 4 - Bulk Email Sending Software

SendBlaster 4 Pro - Best Bulk Emailing Sending Software
Automatic Subscribe / Unsubscribe Processing
Great for Newsletters & Mass Mailings
Optional HTML & Text Composition
Integration with Google Features
Built in Spam Score Checking
Free Professional Templates - Feature Packed!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had to do a bit of research to find the answer to this question so I thought I'd share my results.  Due to our outdated mainframe systems, we need to downgrade IE9 to IE8 in order to stay compatible.  We also needed to downgrade Java.  In order to…
#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
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.

751 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