[dokuwiki] Re: Editing Toolbar
- From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Thu, 25 Jan 2007 10:53:07 +0100
Terence J. Grant writes:
What do you mean by "onError" handler? wrapping everything in a large
try-catch block?
No, I'm referring to this:
http://www.w3schools.com/js/js_onerror.asp
Interesting. I didn't know about that one.
I imagine this could either come up as a JavaScript based "alert" or
through html_msgarea() (which is where other dokuwiki-related
warnings/errors go, right?)
I wonder if it would be possible to wrap plugin scripts in try-catch blocks
to display an error like "An error occured in the JavaScript of plugin foo,
please check it's documentation and inform the author if nessessary".
Though I'm not sure if a try-catch can catch parsing errors, probably not.
Andi
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- References:
- [dokuwiki] Editing Toolbar
- From: Terence J. Grant
- [dokuwiki] Re: Editing Toolbar
- From: Terence J. Grant
- [dokuwiki] Re: Editing Toolbar
- From: Andreas Gohr
- [dokuwiki] Re: Editing Toolbar
- From: Terence J. Grant
Other related posts:
What do you mean by "onError" handler? wrapping everything in a large try-catch block?
No, I'm referring to this: http://www.w3schools.com/js/js_onerror.asp
I imagine this could either come up as a JavaScript based "alert" or through html_msgarea() (which is where other dokuwiki-related warnings/errors go, right?)
- [dokuwiki] Editing Toolbar
- From: Terence J. Grant
- [dokuwiki] Re: Editing Toolbar
- From: Terence J. Grant
- [dokuwiki] Re: Editing Toolbar
- From: Andreas Gohr
- [dokuwiki] Re: Editing Toolbar
- From: Terence J. Grant