I have many places in my code doing "$.ajax" call can I define one place to handle all errors ?
I know there is "error: function ... " that I can place in each call , but I want to write it just one time
I have many places in my code doing "$.ajax" call can I define one place to handle all errors ?
I know there is "error: function ... " that I can place in each call , but I want to write it just one time
You can define your error handling function just once and then refer to it in the Ajax call rather than using function literals in each call.