PDA

View Full Version : javascript error with Internet Explorer 5.0 but not 6.0 help?


CreekDawg99
05-01-2003, 03:51 PM
Hi,

I have a web site that works using latest Netscape and Internet Explorer browser versions but is generating JavaScript Errors with older versions.

The first error I was able to fix. A little background possibly will help with the second error. The first error was occuring in Netscape Version 4.5. I have the following lines in my code:

strText = strText + "<br><img src=\"http://www.cuservicecenter.com/images/search.gif\" alt=\"Now Searching\">";
document.getElementById('showMap').innerHTML = strText;

I fixed it by changing to the following:

strText = strText + "<br><img src=\"http://www.cuservicecenter.com/images/search.gif\" alt=\"Now Searching\">";
var ns4=document.layers?1:0
if (!ns4)
document.getElementById('showMap').innerHTML = strText;

So, the first problem was that Nescape 4.5 didn't like the document.getElementById(X).innerHTML line.

But now I've had reports of JavaScript Problems using Internet Explorer 5.0. However, I don't have access to a computer running 5.0 (ever tried to downgrade from 6.0 to 5.0?). I don't have a clue how to fix this.

Does anybody have access to Internet Explorer 5.0 that could help or have any other ideas that might help? I don't want to post the URL here because I don't want anybody thinking this is spam or something like that. But if you can help, please either respond to this post or send me a private message and I'll give you more details about the site URL.

Thanks.

liorean
05-01-2003, 03:58 PM
Could you hand us the part of the script that thows the error? Ie5 has a scripting engine that is about the level of JavaScript 1.2 - except in certain features where it's got a considerable higher level. This means you'll have problems with methods on RegExp, String and Array objects especially and stray features in the rest of the language. Ie5w also has a far less compliant css parser and doesn't support as much of the DOM as ie5m, ie5.5w and ie6.0w.

Send me the url in a PM and I'll have a look at it.

beetle
05-01-2003, 04:07 PM
Posting the URL here is legit when you have a problem. The Spam Police&trade; will not be banging at your door :D

CreekDawg99
05-01-2003, 04:32 PM
Ok, thanks. I never know what is considered spam and what is not considered spam so I tend to lean toward the safe side.

Nonetheless, the URL for my site is:

http://www.cuservicecenter.com

Our customer only says a runtime error message pops up in Internet Explorer 5 and give me no details as to error type or line number.

Thanks :)

beetle
05-01-2003, 04:38 PM
Better try to get some more info -- I just surfed around your site a bit with IE5 -- no errors.

Version 5.00.2920 to be exact.

CreekDawg99
05-01-2003, 04:59 PM
ok beetle. Thanks for taking a look. This customer has reported some other strange problems that I can't recreate either. I'll contact our help desk and let them know I'm able to verify correct execution.

Thanks very much for taking the time to look. I really appreciate it. I'll be sure to post any other errors the customer claims to see.