Clear Up
SharpKit Reference

ConnectionConfig Class


Base Types


Derived Types


Name Description


Name Description
autoAbort Whether this request should abort any pending requests. Defaults to: false
cors True to enable CORS support on the XHR object. Currently the only effect of this option is to use the XDomainRequest object instead of XMLHttpRequest if the browser is IE8 or above. Defaults to: false
defaultHeaders An object containing request headers which are added to each request made by this object.
disableCaching True to add a unique cache-buster param to GET requests. Defaults to: true
disableCachingParam Change the parameter which is sent went disabling caching through a cache buster. Defaults to: "_dc"
extraParams Any parameters to be appended to the request.
listeners A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the addListener example for attaching multiple handlers at once. DOM events from Ext JS Components While some Ext JS Component classes export selected DOM events (e.g. "click", "mouseover" etc), this is usually only done when extra value can be added. For example the DataView's itemclick event passing the node clicked on. To access DOM events directly from a child element of a Component, we need to specify the element option to identify the Component property to add a DOM listener to:
new Ext.panel.Panel({
            width: 400,
            height: 200,
            dockedItems: [{
            xtype: 'toolbar'
            listeners: {
            click: {
            element: 'el', //bind to the underlying el property on the panel
            fn: function(){ console.log('click el'); }
            dblclick: {
            element: 'body', //bind to the underlying body property on the panel
            fn: function(){ console.log('dblclick body'); }
method The default HTTP method to be used for requests. If not set, but request params are present, POST will be used; otherwise, GET will be used.
timeout The timeout in milliseconds to be used for requests. Defaults to: 30000
withCredentials True to set withCredentials = true on the XHR object Defaults to: false
© Copyright 2005-2011 SharpKit. All rights reserved.