Possible Duplicate:
Logging Clientside JavaScript Errors on Server
How can I log client side javascript errors to the server? I’m using jQuery and MVC.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since they’re client-side errors, you’ll have to send them to the server using XMLHttpRequest. You could use
try...catchstatements orwindow.onerror:Be aware that
lineandurlcan be very inaccurate in IE versions prior to 8.