X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..2e847cf21b8ab9d15fa167b315ca5b2fa92638fc:/docs/output/Ext.Ajax.html diff --git a/docs/output/Ext.Ajax.html b/docs/output/Ext.Ajax.html index 31acb2df..a9855684 100644 --- a/docs/output/Ext.Ajax.html +++ b/docs/output/Ext.Ajax.html @@ -1,4 +1,4 @@ -
Properties Methods Events Config Options Direct Link
Observable
  Connection
    Ajax

Class Ext.Ajax

Package:Ext
Defined In:Connection.js
Class:Ajax
Extends:Connection

The global Ajax request class that provides a simple way to make Ajax requests +

Observable
  Connection
    Ajax

Class Ext.Ajax

Package:Ext
Defined In:Connection.js
Class:Ajax
Extends:Connection

The global Ajax request class that provides a simple way to make Ajax requests with maximum flexibility.

Since Ext.Ajax is a singleton, you can set common properties/events for it once and override them at the request function level only if necessary.

@@ -10,7 +10,7 @@ and override them at the request function level only if necessary.

// Default headers to pass in every request

 Ext.Ajax.defaultHeaders = {
     'Powered-By': 'Ext'
-};
+};

Common Events you may want to set are:

  • beforerequest

  • @@ -20,7 +20,7 @@ Ext.Ajax.defaultHeaders = {
    // Example: show a spinner during all Ajax requests
    
     Ext.Ajax.on('beforerequest', this.showSpinner, this);
     Ext.Ajax.on('requestcomplete', this.hideSpinner, this);
    -Ext.Ajax.on('requestexception', this.hideSpinner, this);
    +Ext.Ajax.on('requestexception', this.hideSpinner, this);

    An example request:

    // Basic request
    
    @@ -38,7 +38,7 @@ Ext.Ajax.request({
         form: 'some-form',
         params: 'foo=bar'
    -});
    +});



    This class is a singleton and cannot be created directly.

Config Options

Config OptionsDefined By
 disableCachingParam : String
Change the parameter which is sent went disabling caching through a cache buster. Defaults to '_dc'
Connection

Public Methods

MethodDefined By