[dokuwiki] Re: Editing Toolbar

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

Other related posts: