extjs - Proxy JsonP and callbackkey -
im near finish app , when try put in onlin server find problems...
my proxy don't work ajax issue, need put jsonp , configure drupal use jsonp.
before:
proxy: { type: 'ajax', url: 'http://mydomain/json-art', reader: { type: 'json', rootproperty: 'nodes' }, } after:
proxy: { type: 'jsonp', url: 'http://mydomain/json-art', callbackkey: 'callback', reader: { type: 'json', rootproperty: 'nodes' }, } then in drupal 7 put... jsonp prefix: ext.data.jsonp.callback1
and.. works fine.
but.. have 4 stores in app, , try reply configuration in other stores. , works first one. try change callback1 callback2, callback3, etc.. have same error:
object [object object] has no method 'callback4'
i don't know whats correct way use callbackkey in app, pls me!!!!
thx
what figure "the internet", drupal jsonp prefix either set string use, or name of url variable check. if set json prefix "callback", should work fine. because the sencha jsonp call auto-append url parameter named "callback", contains name of function call (typically ext.data.jsonp.callback#number#.
note solution not right 1 datastore. not entirely sure why behaviour get, each jsonp call should have different callback functionname.
Comments
Post a Comment