X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..92c2b89db26be16707f4a805d3303ab2531006e1:/docs/output/Ext.Ajax.html?ds=inline 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 @@ -
Observable Connection 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
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:
// 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'
-});
+});
Config Options | Defined By | |
---|---|---|
disableCachingParam : String Change the parameter which is sent went disabling caching
through a cache buster. Defaults to '_dc' | Connection | |
listeners : Object A config object containing one or more event handlers to be added to this
object during initialization. This should ... A config object containing one or more event handlers to be added to this @@ -107,9 +107,11 @@ If the server receives all requests t... The default URL
If the server receives all requests through one URL, setting this once is easier than
entering it on every request. | Ajax |
Method | Defined By | |
---|---|---|
abort( [Number transactionId ] )
:
- voidAborts any outstanding request. Aborts any outstanding request. Parameters:
| Connection | |
addEvents( Object object )
+ voidAborts any outstanding request. Aborts any outstanding request. Parameters:
| Connection | |
addEvents( Object|String o , string Optional. )
:
- voidUsed to define events on this Observable Used to define events on this Observable Parameters:
| Observable | |
addListener( String eventName , Function handler , [Object scope ], [Object options ] )
+ voidAdds the specified events to the list of events which this Observable may fire. Adds the specified events to the list of events which this Observable may fire. Parameters:
| Observable | |
addListener( String eventName , Function handler , [Object scope ], [Object options ] )
:
voidAppends an event handler to this object. Appends an event handler to this object. Parameters:
| Observable | |
enableBubble( Object events )
+'click' : this.onClick,
+'mouseover' : this.onMouseOver,
+'mouseout' : this.onMouseOut,
+ scope: this
+});Returns:
| Observable | |
enableBubble( String/Array events )
:
- voidUsed to enable bubbling of events Used to enable bubbling of events Parameters:
| Observable | |
fireEvent( String eventName , Object... args )
+ voidEnables events fired by this Observable to bubble up an owner hierarchy by calling
+this.getBubbleTarget() if present... Enables events fired by this Observable to bubble up an owner hierarchy by calling
+ This is commonly used by Ext.Components to bubble events to owner Containers. See Ext.Component.getBubbleTarget. The default +implementation in Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to +access the required target more quickly. +Example:
Parameters:
| Observable | |
fireEvent( String eventName , Object... args )
:
BooleanFires the specified event with the passed parameters (minus the event name).
An event may be set to bubble up an Obse... Fires the specified event with the passed parameters (minus the event name). @@ -217,8 +251,8 @@ called regardless of success or failure and is passed the following parameters:
|