The use of Ext.ajax

Source: Internet
Author: User

Ext.Ajax.request ({//ajax request
URL: ' Account/sysarea/insertroot ',//Request URL
Params:record.data.attributes,//List of references
Success:function (response) {//Operation succeeded callback function


var _o = Ext.decode (Response.responsetext); Analytical

}

});


Here are some properties and methods

Config Options Ext.data.Connection
View Sourcecors: Boolean' True ' means to enable cors support for XHR objects (Cross-origin Resource sharing cross-domain resource sharing). ... Ext.data.Connection
View Sourcedisablecachingparam: StringWhen the request cache is disabled using an append parameter, the appended number of references is called. ... Ext.util.Observable
View Sourcelisteners: ObjectA configuration object. Includes one or more event handlers that are added to the object when the object is initialized. ... Ext.data.Connection
View Sourcewithcredentials: BooleanThis parameter ' True ' is set xhr object property Withcredentials = True ... Defined byproperties Ext.ajax
View Sourceautoabort: BooleanWhether the newly issued request interrupts all outstanding requests. ... Ext.ajax
View Sourcedefaultheaders: Object

An object that includes the request header information will be added to each request made using the current object.

 Ext.ajax
View Sourcedisablecaching: Boolean

Assuming true, a cache-buster (cache killer) will be added to the GET request.

The default is true.

 Ext.ajax
View Sourceextraparams: ObjectAn object with an attribute value that is used to attach an additional number of parameters to each request made using the current object. ... Ext.util.Observable
View Sourcehaslisteners: ObjectREADONLYThis object includes the key for any event that has a listener.

The listener can be set directly on the instance, either in its class or parent class (via observe) or on an MVC eventbus.

The value of this object is true (a non-zero number) and False (0 or undefined). They do not represent the exact monitoring ...

 Ext.util.Observable
View Sourceisobservable: BooleanSet to true in this class to identify an object as an instantiated observable or its subclasses. ... Ext.ajax
View Sourcemethod: String

The HTTP request method that is used by default.

Note that this configuration item is uppercase and lowercase sensitive, all letters should be capitalized (assuming you have not set this configuration item, but there are request parameters.) Then "POST"will be used. Otherwise , "get"will be used. )。

 Ext.ajax
View Sourcetimeout: number

The time-out for the request. Unit milliseconds. The default feels 30000.

 Ext.ajax
View sourceURL: StringThe URL that is used by default when sending requests to the server. ... Defined Bymethods Ext.data.Connection
View Sourceabort ([Object Request]) interrupts an in-progress request. ... Ext.data.Connection
View Sourceabortall (Interrupts all in-progress requests ... Ext.util.Observable
View Sourceaddevents (object/string ... eventnamesAdds the specified event to the list of events that may be triggered by this observable. ... Ext.util.Observable
View Sourceaddlistener (string/object eventName, [Function fn], [object scope], [object options]) to add an event handler to this object. For example: Mygridpanel.on ("MouseOver", This.onmouseover, this); This approach also agrees to pass a single parameter, which is a configuration object that includes a property that specifies multiple events. Like what:... Ext.util.Observable
View Sourceaddmanagedlistener (ext.util.observable/ext.element Item, object/string ename, Function FN, object scope, object optAdd listeners to any observable object (or ext.element), and when the component is destroyed, the listener is actively removed ... Ext.util.Observable
View Sourceclearlisteners (Remove all listeners from this object that contain managed listeners ... Ext.util.Observable
View Sourceclearmanagedlisteners (Remove all managed listeners for this object ... Ext.util.Observable
View Sourceenablebubble (string/string[] Eventnamesby calling This.getbubbletarget () (assuming it exists) to agree that events triggered by this observable object are bubbling along the inheritance system, there is no implementation class in the observable base class. ... Ext.util.Observable
View Sourcefireevent (String eventName, Object ... args): Boolean uses the passed-in parameter (removes the event name. Plus the options object passed to AddListener) triggers the specified event.

...

 Ext.util.Observable
View Sourcehaslistener (String EventName): Boolean checks whether this object has a listener for a specific event, or checks whether the event is bubbling. ... Ext.data.Connection
View Sourceisloading ([Object Request]): Boolean to infer whether the request state is not complete. ... Ext.util.Observable
View Sourcemon (ext.util.observable/ext.element Item, object/string ename, Function FN, object scope, object optThe shorthand method of Addmanagedlistener adds listeners to whatever observable object (or ext.element). When the component is destroyed, the listener is actively removed from the ... Ext.util.Observable
View Sourcemun (ext.util.observable/ext.element Item, object/string ename, Function fn, Object scopeThe abbreviated method of Removemanagedlistener removes the listener added by the Mon method.

...

 Ext.util.Observable
View Sourceon (string/object eventName, [Function fn], [object scope], [object options]AddListener's shorthand method adds an event handler function to this object, such as: Mygridpanel.on ("MouseOver", This.onmouseover, this); This method also agrees to pass a single parameter, which includes a specified ... Ext.data.Connection
View Sourceparsestatus (Number Status): Object infers whether the response state is successful. ... Ext.util.Observable
View Sourcerelayevents (Object origin, string[] events, [String prefix]Replaces the selected event from the specified observable as if the event was this trigger.

...

 Ext.util.Observable
View Sourceremovelistener (String EventName, Function fn, Object scopeRemoves the event handler function. ... Ext.util.Observable
View Sourceremovemanagedlistener (ext.util.observable/ext.element Item, object/string ename, Function fn, Object scope) to remove the listener added by the Mon method. ... Ext.data.Connection
View Sourcerequest (Object Options): Object sends an HTTP request to a remote server. ... Ext.util.Observable
View Sourceresumeevents () to continue the triggering of the event (see Suspendevents).

...

 Ext.data.Connection
View Sourcesetoptions (object options, Object Scope): Object sets various parameters for the request, such as URL, params, and so on. ... Ext.util.Observable
View Sourcesuspendevents (Boolean queuesuspended) suspends the triggering of all events.

(See Resumeevents) ...

 Ext.util.Observable
View Sourceun (String EventName, Function fn, Object scopeThe abbreviated method of RemoveListener removes the event handler function. ... Ext.data.Connection
View Sourceupload (string/htmlelement/ext.element form, string URL, string params, Object optionsUpload Form form with a hidden iframe ... Defined byevents Ext.data.Connection
View Sourcebeforerequest (Ext.data.Connection Conn, object options, Object EoptsThis event is triggered before a network request for a request data object is sent. ... Ext.data.Connection
View Sourcerequestcomplete (Ext.data.Connection Conn, object response, Object options, Object EoptsThis event is triggered when a request is completed successfully. ... Ext.data.Connection
View Sourcerequestexception (Ext.data.Connection Conn, object response, Object options, Object EoptsThis event is triggered when the server returns an HTTP error status value. ...

The use of Ext.ajax

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.