Catching JavaScript exceptions in jQuery code.
Hi all,
I'm using $.ajaxStart and $.ajaxStop events for showing a "loading" gif to the user, when ajax call is going on. In my $.ajax success callback, if there is some error in JavaScript code, code execution stops abruptly and the "loading" animation never gets hidden($.ajaxStop never gets fired). I tried using $(window).error., still I'm not able to catch the exception.
Looks like jQuery is suppressing the error. Can anyone explain how to deal with unhandled JavaScript exceptions?
Regards,
Krishna,
www.novogeek.com