jQWidgets Forums

jQuery UI Widgets Forums Plugins Data Adapter Preventing or Stopping an AJAX call

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Preventing or Stopping an AJAX call #50188

    gkushner
    Participant

    Hello Peter,

    I have a DropDownList control bound to an adapter.

    When my form initially loads, the control/adapter triggers an AJAX call. But there is no data to send at that point.

    Is there a method for preventing or aborting an AJAX call before it goes to the server?

    Thank you.

    Gordon

    
    source = {
    	datatype: "json",
    	type: "POST",
    	minLength: 3,
    	searchMode: "startswith",
    	datafields: [
                        	{ name: 'orderNum' },
                        	{ name: 'id' }
                        ],
            id: "id",
    	url: '/web/orderList/',
    	formatData: function(data) {
    	    var ordNum = $('#orderSearchCtl_${id}').val();
    	    if(ordNum !== '') {
        		$.extend(data, {orderNum : ordNum });
    	    }
    	    return data;
    	}
    };	
    Preventing or Stopping an AJAX call #50192

    Peter Stoev
    Keymaster

    Hi Gordon,

    No, there is no such method.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.