Clear Up
SharpKit Reference

JsonP Class

Namespace: Ext.data.proxy

Base Types

System.Object

Constructors

Name Description
JsonP(JsonPConfig)
JsonP() @cfg {Boolean} autoAppendParams True to automatically append the request's params to the generated url. Defaults to true

Methods

Name Description
abort() Aborts the current server request if one is currently running
buildUrl(Request) Generates a url based on a given Ext.data.Request object. Adds the params and callback function name to the url @param {Ext.data.Request} request The request object @return {String} The url
createRequestCallback(Request, Operation, JsAction, object) @private Creates and returns the function that is called when the request has completed. The returned function should accept a Response object, which contains the response to be read by the configured Reader. The third argument is the callback that should be called after the request has been completed and the Reader has decoded the response. This callback will typically be the callback passed by a store, e.g. in proxy.read(operation, theCallback, scope) theCallback refers to the callback argument received by this function. See {@link #doRequest} for details. @param {Ext.data.Request} request The Request object @param {Ext.data.Operation} operation The Operation being executed @param {Function} callback The callback function to be called when the request completes. This is usually the callback passed to doRequest @param {Object} scope The scope in which to execute the callback function @return {Function} The callback function
destroy()
doRequest(Operation, JsAction, object)
encodeRecords(object) Encodes an array of records into a string suitable to be appended to the script src url. This is broken out into its own function so that it can be easily overridden. @param {Ext.data.Model[]} records The records array @return {String} The encoded records string
setException(object, object)

Properties

Name Description
alternateClassName
autoAppendParams @cfg {Boolean} autoAppendParams True to automatically append the request's params to the generated url. Defaults to true
callbackKey @cfg {String} callbackKey See {@link Ext.data.JsonP#callbackKey}.
defaultWriterType
extend
recordParam @cfg {String} recordParam The param name to use when passing records to the server (e.g. 'records=someEncodedRecordString'). Defaults to 'records'
© Copyright 2005-2011 SharpKit. All rights reserved.