nl_tokens: Performs the read request to the remote domain . JsonP proxy 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
pl_tokens: function ( operation , callback , scope ) { // <debug> var action = operation . getAction ( ) ; if ( action !== 'read' ) { Ext . Logger . <mask> ( 'JsonP proxies can only be used to read data.' ) ; } // </debug> //generate the unique IDs for this request var me = this , request = me . buildRequest ( operation ) , params = request . getParams ( ) ; // apply JsonP proxy-specific attributes to the Request request . setConfig ( { callbackKey : me . getCallbackKey ( ) , timeout : me . getTimeout ( ) , scope : me , callback : me . createRequestCallback ( request , operation , callback , scope ) } ) ; // Prevent doubling up because the params are already added to the url in buildUrl if ( me . getAutoAppendParams ( ) ) { request . setParams ( { } ) ; } request . setJsonP ( Ext . data . JsonP . request ( request . getCurrentConfig ( ) ) ) ; // Set the params back once we have made the request though request . setParams ( params ) ; operation . setStarted ( ) ; me . lastRequest = request ; return request ; }