Tony said the following on 6/14/2006 2:09 PM:[color=blue]
> Randy Webb wrote:[color=green]
>> Tony said the following on 6/12/2006 8:58 PM:[color=darkred]
>>>
>>> "It would be nice if IE did..."
>>>
>>> but it doesn't, so you deal with it. IE pretty much doesn't give errors.[/color]
>>
>>
>> Yes it does, you just have to learn how to understand them. And
>> sometimes, IE gives better (more useful) error messages than FF does.[/color]
>
> I haven't found that to be the case - perhaps I just haven't encountered
> such a situation.[/color]
A lot of that depends on what you get used to. The first that comes to
mind is something like this:
<script type="text/javascript" src="ExternalJsFile.js"></script>
<script type="text/javascript">
someFunctionInExternalJsFile()
</script>
Now, assume you have the path wrong to the ExternalJsFile.js, or, you
have a typo in the name of the file.
IE error message:
Line: 2
Character: 1
Error: Invalid Character
FF error message:
Error: someFunctionIn is not defined
Neither exactly tells you what the problem is - that the external file
didn't get loaded. But IE never makes it to the function call. So which
is a better error message?
That is the first that comes to mind because I have seen it so many
times that when I see it I already know what is wrong without looking.
That doesn't mean I think IE always gives better error messages because
it doesn't. But FF doesn't always either. A better error message for the
above problem would be something like "File failed to load" or "File not
found". But both IE and FF's error message was useless.
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/