April 13, 2006
9:06 am
Catching users JavaScript errors in your server logs
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:
window.onerror = function (msg, url, lno) {
... ajax call back to the server log ...
Loading

Leave a comment »