Flanagan onerror example does not work for me

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alliss

    Flanagan onerror example does not work for me

    I am working my way through David Flanagan's Definitive Guide to Javascript.
    Example 14-1 has an onerror event handler and includes a deliberate error as
    a test. Problem is my browser's javascript default error handler intervenes
    and controls the error handling and the handler in the example is not
    called.
    Disabling the browser's script debugging does not help - presumably it
    prevents the error being passed to the handler?
    I would be grateful if someone could explain what is going on here and how I
    can get this example to run.
    My browser is IE 6.0.2800.1106


  • Jim Ley

    #2
    Re: Flanagan onerror example does not work for me

    On Thu, 15 Jan 2004 12:46:31 +1300, "Alliss" <alliss@wonderl and.com>
    wrote:
    [color=blue]
    >I am working my way through David Flanagan's Definitive Guide to Javascript.
    >Example 14-1 has an onerror event handler and includes a deliberate error as
    >a test. Problem is my browser's javascript default error handler intervenes
    >and controls the error handling and the handler in the example is not
    >called.[/color]

    Which edition, the 4th is good, but does still contain old examples
    from the not so good previous books. onerror is generally best
    avoided as it doesn't catch many errors anyway!
    [color=blue]
    >I would be grateful if someone could explain what is going on here and how I
    >can get this example to run.
    >My browser is IE 6.0.2800.1106[/color]

    it may be rewrite your browser!

    Look for object detection techniques, but give them more weight than
    Flanagan does there.

    Jim.
    --
    comp.lang.javas cript FAQ - http://jibbering.com/faq/

    Comment

    • Alliss

      #3
      Re: Flanagan onerror example does not work for me


      "Jim Ley" <jim@jibbering. com> wrote in message
      news:40087192.2 0432740@news.ci s.dfn.de...[color=blue]
      > On Thu, 15 Jan 2004 12:46:31 +1300, "Alliss" <alliss@wonderl and.com>
      > wrote:
      >[color=green]
      > >I am working my way through David Flanagan's Definitive Guide to[/color][/color]
      Javascript.
      [color=blue]
      > Which edition, the 4th is good, but does still contain old examples
      > from the not so good previous books. onerror is generally best
      > avoided as it doesn't catch many errors anyway![/color]

      Thanks Jim. It is the 4th edition. The example used an error handler to
      demonstrate dynamically generated html rather than error handling as such,
      so I will press on and not let it sidetrack me.

      Allis



      Comment

      Working...