Search code examples
jquery-uijqueryblockui

jQuery block UI exceptions


I am using JQuery UI plugin blockUI to block UI for every ajax request. It works like a charm, however, I don't want to block the UI (Or at least not show the "Please wait" message) when I am making ajax calls to fetch autocomplete suggest items. How do I do that? I am using jquery autocomplete plugin for autocomplete functionality.

Is there a way I can tell the block UI plug-in to not block UI for autocomplete?


Solution

  • $('#myWidget').autocomplete({
        source: function(data, callback) {
            $.ajax({
                global: false,  // <-- this is the key!
                url: 'http:...',
                dataType: 'json',
                data: data,
                success: callback
            });
        }
    });