Logging client side errors to server?
After some research there is no real magic way to do it aside from an ajax back to the server - so will incur performance overhead.
Seen some older posts overriding window.onerror instead of try catch everywhere (and then make an ajax call in there that posts error message to server) but have seen some comments that window.onerror no longer works in some browsers - is this true?
I imagine the best way would be to wrap whatever initialisation you do in a try...catch although I gather you can set the error handler in JS.
Here's a good article: http://www.alistapart.com/articles/m...ps-and-tricks/
Thanks so much for the reply - great points.
Though I am getting a 404 for your link - are you sure it is correct?
you can use IMG pings instead of ajax; much lighter for the client to issue.
Last edited by rnd me; 08-16-2012 at 03:40 PM.
Create, Share, and Debug HTML pages and snippets with a cool new web app I helped create: pagedemos.com
A plug and play service
I've created a plug and play service, that does what you ask.
You can find at http://muscula.com
For now it's free, it's in beta. If you sign up I will give you access fast.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)