Loading ...
Sorry, an error occurred while loading the content.
 

Re: FYI: Random code failure in IE but -not- in FF explained

Expand Messages
  • mgkimsal2
    So much for the IE is more forgiving argument. :) I ve hit this one many times myself. Thanks for reminding everyone about it! ... Michael Kimsal
    Message 1 of 2 , Dec 26, 2006
      So much for the 'IE is more forgiving' argument. :)

      I've hit this one many times myself. Thanks for reminding everyone
      about it!

      --- In ydn-javascript@yahoogroups.com, "mark.deibert"
      <mark.deibert@...> wrote:
      >
      > 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 :-(
      >
      > :-)
      >



      Michael Kimsal
      http://www.webdevradio.com
    Your message has been successfully submitted and would be delivered to recipients shortly.