April 13, 2006
9:06 am

Markku Uttula has written a little hack that captures JavaScript errors and sends them to his web server log using Ajax. If you would want to do this? Implementation: One PHP file that does both the error writing, and also acts as the script src= to capture errors:

[code]window.onerror = function (msg, url, lno) {
… ajax call back to the server log …[/code]

Related Posts:

No followup yet

Leave a Response

Comment Preview
« Ajax Book Review SeriesXMLHttpRequest W3C Working Draft »
Feed Icon

Subscribe via RSS or email: