Clear Up
SharpKit Reference

Ajax Class

Namespace: Ext

Base Types

System.Object

Constructors

Name Description
Ajax(AjaxConfig)
Ajax()

Properties

Name Description
autoAbort @property autoAbort Whether a new request should abort any pending requests. (defaults to false) @type Boolean
extend A singleton instance of an {@link Ext.data.Connection}. This class is used to communicate with your server side code. It can be used as follows: * Ext.Ajax.request({ url: 'page.php', params: { id: 1 }, success: function(response){ var text = response.responseText; // process server response here } }); * Default options for all requests can be set by changing a property on the Ext.Ajax class: * Ext.Ajax.timeout = 60000; // 60 seconds * Any options specified in the request method for the Ajax request will override any defaults set on the Ext.Ajax class. In the code sample below, the timeout for the request will be 60 seconds. Ext.Ajax.timeout = 120000; // 120 seconds Ext.Ajax.request({ url: 'page.aspx', timeout: 60000 }); * In general, this class will be used for all Ajax requests in your application. The main reason for creating a separate {@link Ext.data.Connection} is for a series of requests that share common settings that are different to all other requests in the application.
singleton A singleton instance of an {@link Ext.data.Connection}. This class is used to communicate with your server side code. It can be used as follows: * Ext.Ajax.request({ url: 'page.php', params: { id: 1 }, success: function(response){ var text = response.responseText; // process server response here } }); * Default options for all requests can be set by changing a property on the Ext.Ajax class: * Ext.Ajax.timeout = 60000; // 60 seconds * Any options specified in the request method for the Ajax request will override any defaults set on the Ext.Ajax class. In the code sample below, the timeout for the request will be 60 seconds. Ext.Ajax.timeout = 120000; // 120 seconds Ext.Ajax.request({ url: 'page.aspx', timeout: 60000 }); * In general, this class will be used for all Ajax requests in your application. The main reason for creating a separate {@link Ext.data.Connection} is for a series of requests that share common settings that are different to all other requests in the application.
© Copyright 2005-2011 SharpKit. All rights reserved.