Tuesday, May 26, 2009

Log Javascript Errors using AJAX

A lot of users were complaining lately that some core functionalities are not working for them any more.
The problem here was that for me there was no problems what so ever, and couldn't recreate the issue in any way.

Emailing the users and waiting for their response is also quite problematic. (Especially if one of them is 80years old and doesn't really understand what's going on.

The first solution for these kind of situations that came into my mind, was to create a system that will catch all errors and will pass it to the server for logging using Ajax.

It seems that everything you can think about is already out there:

http://www.dotnetheaven.com/UploadFile/sundaramkumar/LogJavascriptErrors02272008002456AM/LogJavascriptErrors.aspx

Of course we can tweak these methods and say X limit errors can be sent to server (to avoid flooding), or use a variable to turn it on/off (especially after new deploys or when we are getting a lot of complaints from users)

3 comments:

Anonymous said...

It's so easy to choose high quality [url=http://www.euroreplicawatches.com/]replica watches[/url] online: [url=http://www.euroreplicawatches.com/mens-swiss-watches-rolex/]Rolex replica[/url], [url=http://www.euroreplicawatches.com/mens-swiss-watches-breitling/]Breitling replica[/url], Chanel replica or any other watch from the widest variety of models and brands.

Anonymous said...

http://markonzo.edu http://www.netknowledgenow.com/members/Sertraline-hcl.aspx http://www.netknowledgenow.com/members/Flovent-hfa.aspx flagor http://aviary.com/artists/Synthroid-oral http://www.netknowledgenow.com/members/Adderall-Side-Effects.aspx http://blog.bakililar.az/flagyl/ http://blog.bakililar.az/prilosecs/ http://www.netknowledgenow.com/members/zolpidem-tartrate.aspx http://www.netknowledgenow.com/members/Claritin-Side-Effects.aspx towelettes http://profiles.friendster.com/nolvadex#moreabout http://www.netknowledgenow.com/members/Lisinopril-Side-Effects.aspx vessels

Hcg weight loss said...

It was really nice to study your post. I collect some good points here. I would like to be appreciative you with the hard work you have made in skill this is great article.

:popular_tags => [ruby, rails, ruby-on-rails, רובי-און-ריילס, console,,tricks, youtube, links, screeshots, toturials],
:email_me => 'shmuel@ahdut.com',
:subscribe_to_rss => ,
:sites => [pawst.com, urlazy.com],
:sponsored_by =>