diTii.com Digital News Hub

Sign up with your email address to be the first to know about latest news and more.

I agree to have my personal information transfered to MailChimp (more information)

Apr132006

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 ...
Share This Story, Choose Your Platform!

Get Latest News

Subscribe to Digital News Hub

Get our daily newsletter about the latest news in the industry.
First Name
Last Name
Email address
Secure and Spam free...