-<!DOCTYPE html><html><head><title>Sencha Documentation Project</title><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../prettify.css" type="text/css"><link rel="stylesheet" href="../prettify_sa.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script></head><body onload="prettyPrint()"><pre class="prettyprint"><pre><span id='Ext-data.proxy.JsonP'>/**
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>The source code</title>
+ <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
+ <script type="text/javascript" src="../prettify/prettify.js"></script>
+ <style type="text/css">
+ .highlight { display: block; background-color: #ddd; }
+ </style>
+ <script type="text/javascript">
+ function highlight() {
+ document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
+ }
+ </script>
+</head>
+<body onload="prettyPrint(); highlight();">
+ <pre class="prettyprint lang-js"><span id='Ext-data-proxy-JsonP'>/**
</span> * @author Ed Spencer
* @class Ext.data.proxy.JsonP
* @extends Ext.data.proxy.Server
defaultWriterType: 'base',
-<span id='Ext-data.proxy.JsonP-cfg-callbackKey'> /**
+<span id='Ext-data-proxy-JsonP-cfg-callbackKey'> /**
</span> * @cfg {String} callbackKey (Optional) See {@link Ext.data.JsonP#callbackKey}.
*/
callbackKey : 'callback',
-<span id='Ext-data.proxy.JsonP-cfg-recordParam'> /**
+<span id='Ext-data-proxy-JsonP-cfg-recordParam'> /**
</span> * @cfg {String} recordParam
* The param name to use when passing records to the server (e.g. 'records=someEncodedRecordString').
* Defaults to 'records'
*/
recordParam: 'records',
-<span id='Ext-data.proxy.JsonP-cfg-autoAppendParams'> /**
+<span id='Ext-data-proxy-JsonP-cfg-autoAppendParams'> /**
</span> * @cfg {Boolean} autoAppendParams True to automatically append the request's params to the generated url. Defaults to true
*/
autoAppendParams: true,
constructor: function(){
this.addEvents(
-<span id='Ext-data.proxy.JsonP-event-exception'> /**
+<span id='Ext-data-proxy-JsonP-event-exception'> /**
</span> * @event exception
* Fires when the server returns an exception
* @param {Ext.data.proxy.Proxy} this
this.callParent(arguments);
},
-<span id='Ext-data.proxy.JsonP-method-doRequest'> /**
+<span id='Ext-data-proxy-JsonP-method-doRequest'> /**
</span> * @private
* Performs the read request to the remote domain. JsonPProxy does not actually create an Ajax request,
* instead we write out a <script> tag based on the configuration of the internal Ext.data.Request object
return request;
},
-<span id='Ext-data.proxy.JsonP-method-createRequestCallback'> /**
+<span id='Ext-data-proxy-JsonP-method-createRequestCallback'> /**
</span> * @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.
},
-<span id='Ext-data.proxy.JsonP-method-buildUrl'> /**
+<span id='Ext-data-proxy-JsonP-method-buildUrl'> /**
</span> * 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
this.callParent();
},
-<span id='Ext-data.proxy.JsonP-method-abort'> /**
+<span id='Ext-data-proxy-JsonP-method-abort'> /**
</span> * Aborts the current server request if one is currently running
*/
abort: function() {
}
},
-<span id='Ext-data.proxy.JsonP-method-encodeRecords'> /**
+<span id='Ext-data-proxy-JsonP-method-encodeRecords'> /**
</span> * 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 {Array} records The records array
return encoded;
}
});
-</pre></pre></body></html>
\ No newline at end of file
+</pre>
+</body>
+</html>