malsup / blockui

jQuery BlockUI Plugin
http://jquery.malsup.com/block/
1.69k stars 506 forks source link

after setting on all ajax starts and stops can you modify specific calls? #94

Closed morrow95 closed 10 years ago

morrow95 commented 10 years ago

Setup blockUI for all ajax :

1.$(document).ajaxStart($.blockUI).ajaxStop($.unblockUI);

Works great, but there are certain ajax calls where I do not want to display my message. For example in a form I am using ajax to check if a username is available or not... as of now blockui runs on every keystroke typed in the username field... which is fine, but I do not want to display my 'please wait...' message for this particular ajax call.

Is this possible or must I remove the 'global' for all ajax and set blockUI specifically on those that I want to use it?

malsup commented 10 years ago

You'll need to remove the global usage.