My intuitive answer to this question will be: "It is so stupid that I can not continue this conversation." But:
Is there a way to include all javascript function calls in my module? I would like to find a convenient way to display the messages "loading blah ...", "done ..." when making AJAX calls without having to explicitly place the notification method call in each AJAX method.
Also, is there a convenient way to set up a global exception handler in javascript?
It is absolutely possible, of course, to eliminate the need for any of these things by doing the correct exception handling in each applicable method, but it would be nice to have a global “Oops!”. a method to happily catch everything that managed to slip due to a programmer's error (i.e. me).
Work in C # / ASP.NET if that matters, or if there is a server-side gadget that can make this easier.
source
share