Forum Moderators: open

Message Too Old, No Replies

Logging JS errors

Possible?

         

designaweb

3:31 pm on Nov 17, 2005 (gmt 0)

10+ Year Member



Is it possible to "log" my users JS errors somehow?

Nutter

3:34 pm on Nov 17, 2005 (gmt 0)

10+ Year Member



What about having a server side script (PHP, ASP, whatever) that takes a query string based on the error and then access that file with the JS?

Fotiman

4:26 pm on Nov 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



There is a great article on the A List Apart website* about logging JavaScript. Very cool.

However, this is client side only. To do something server side, you'd need to write those values to the server. You could probably implement an AJAX solution to do this without the client even knowing it was happening, though I've never done it myself.

* I'd post a link, but this site has the lamest rules about posting a URL, and I don't think I can copy the contents of the entire article without some sort of copyright infringement, so you'll have to search A List Apart for yourself. <sigh>