470,841 Members | 1,159 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,841 developers. It's quick & easy.

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
Jul 20 '05 #1
2 2095
On Thu, 15 Jan 2004 12:46:31 +1300, "Alliss" <al****@wonderland.com>
wrote:
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.
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!
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


it may be rewrite your browser!

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

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

Jul 20 '05 #2

"Jim Ley" <ji*@jibbering.com> wrote in message
news:40***************@news.cis.dfn.de...
On Thu, 15 Jan 2004 12:46:31 +1300, "Alliss" <al****@wonderland.com>
wrote:
I am working my way through David Flanagan's Definitive Guide to
Javascript.
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!


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

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Robert Oschler | last post: by
4 posts views Thread by Jürgen Heyn | last post: by
2 posts views Thread by crazydave | last post: by
5 posts views Thread by Pete Verdon | last post: by
4 posts views Thread by josh | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.