0

Javascript applications are growing day by day and getting complex too. so is there possible to handle uncatched error that occured in app so they can be send back to server for further analysis.

i just see in phpmyadmin app sometimes show a little popup in bottom say that javascript error occurred would you like to send to server.

I am not asking about try catch or block level error handling instead i want to know weather is it possible to handle global errors just like any browser show in console/log areas. if yes then how.

Ohh sorry.. got answers Logging Clientside JavaScript Errors on Server

Community
  • 1
  • 1
dev.meghraj
  • 8,542
  • 5
  • 38
  • 76
  • Wait, do you know there is a console in most browsers? Or is the question how would you intercept console errors and send them to the server? – James G. Dec 27 '13 at 05:34
  • possible duplicate of [Logging Clientside JavaScript Errors on Server](http://stackoverflow.com/questions/119432/logging-clientside-javascript-errors-on-server) – Adam R. Nelson Dec 27 '13 at 05:38
  • yes.. now i can't delete it.. just going to accept belwo answer.. Thanks. – dev.meghraj Dec 27 '13 at 05:38

1 Answers1

1

The HTML onerror event may be what you want.

Adam R. Nelson
  • 541
  • 4
  • 11