Re: FYI: Random code failure in IE but -not- in FF explained
- So much for the 'IE is more forgiving' argument. :)
I've hit this one many times myself. Thanks for reminding everyone
> Here's some info I hope helps someone else.
> I was having a terrible time trying to figure out why JS worked
> perfectly in FF but only partially or not at all IE. It wouldn't even
> show any errors in the debugger. The page would only partially load
> until it came to a <SCRIPT></SCRIPT> block that had the problem.
> Here's what happens:
> var myFunc = function()
> someProperty:'value', otherProp:3.1415927, abc:'def',
> See that little extra (shouldn't be there) comma at the end? FF
> doesn't care about that at all, but IE... Oh brother. IE -totally-
> chokes on this comma. I brings down the whole script block.
> I spent a good hour and half trying to solve this one :-(