Share Article To

Let us assume we are working on an existing website there several ajax calls are present. Let us assume developer of that website also used ajaxStart and and ajaxComplete events to show please wait popup while ajax calls continues. Now let us assume scenario that we don’t want to show that please wait popup for selected ajax calls. How we can achieve this?

There is an attribute in the options object .ajax() takes called global If you set this to false, it will not trigger the ajaxStart event for the call.


jQuery.ajax({
url: 'AJAX URL',
global: false,
...
});

See the Ajax.Events docs.

Leave a Reply

Your email address will not be published. Required fields are marked *