Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #12916
| From | Gene Wirchenko <genew@ocis.net> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Pokémon Error Handling: Gotta Catch 'Em All |
| Date | 2012-03-19 18:37 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <vbnfm7dg9ekk8691dhslu26rffflb76nps@4ax.com> (permalink) |
Dear JavaScripters:
A while back, I wrote a date object which has try...catch in it.
I would like to catch those errors in my form. Conceptually, I would
like something like:
try
{
<form>
lots of stuff here
</form>
}
catch
{
general error handler
}
How would I do this if my form was defined in static HTML?
How do I do this if most of the form is actually generated by
JavaScript code? This is what I really want.
I suppose I could have very ugly code like
<input ...
onfocus="try { DoFocus(this); } catch(e) { ErrHandler(e); }"
onblur="try { DoBlur(this); } catch(e) { ErrHandler(e); }"
>
repeated ad nauseum, but I am hoping for something nicer.
What should I be reading up on now, please?
Sincerely,
Gene Wirchenko
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
Pokémon Error Handling: Gotta Catch 'Em All Gene Wirchenko <genew@ocis.net> - 2012-03-19 18:37 -0700
Re: Pokémon Error Handling: Gotta Catch 'Em All David Mark <dmark.cinsoft@gmail.com> - 2012-03-19 18:52 -0700
Re: Pokémon Error Handling: Gotta Catch 'Em All Gene Wirchenko <genew@ocis.net> - 2012-03-19 22:26 -0700
Re: Pokémon Error Handling: Gotta Catch 'Em All David Mark <dmark.cinsoft@gmail.com> - 2012-03-19 23:08 -0700
Re: Pokémon Error Handling: Gotta Catch 'Em All Jeff North <jnorthau@yahoo.com.au> - 2012-03-20 18:20 +1100
Re: Pokémon Error Handling: Gotta Catch 'Em All Gene Wirchenko <genew@ocis.net> - 2012-03-20 08:13 -0700
Re: Pokémon Error Handling: Gotta Catch 'Em All David Mark <dmark.cinsoft@gmail.com> - 2012-03-20 16:31 -0700
Re: Pokémon Error Handling: Gotta Catch 'Em All Gene Wirchenko <genew@ocis.net> - 2012-03-20 19:33 -0700
Re: Pokémon Error Handling: Gotta Catch 'Em All David Mark <dmark.cinsoft@gmail.com> - 2012-03-28 21:48 -0700
Re: Pokémon Error Handling: Gotta Catch 'Em All Gene Wirchenko <genew@ocis.net> - 2012-04-02 21:05 -0700
Re: Pokémon Error Handling: Gotta Catch 'Em All flensingknife@gmail.com - 2012-03-31 18:45 -0700
Re: Pokémon Error Handling: Gotta Catch 'Em All Gene Wirchenko <genew@ocis.net> - 2012-04-02 14:49 -0700
Re: Pokémon Error Handling: Gotta Catch 'Em All flensingknife@gmail.com - 2012-03-31 18:49 -0700
Re: Pokémon Error Handling: Gotta Catch 'Em All David Mark <dmark.cinsoft@gmail.com> - 2012-04-01 11:18 -0700
csiph-web