How can omit the parameter callback in the url generated with sencha touch using JsonP?
For example
Url Generated
http://api.example.com/get_players?callback=Ext.data.JsonP.callback1
Url I Want
http://api.example.com/get_players
I could removed the others parameter like page, limit start int the url using this configuration in the config proxy:
proxy: {
type: 'jsonp',
pageParam: false, //to remove param "page"
startParam: false, //to remove param "start"
limitParam: false, //to remove param "limit"
noCache: false, //to remove param "_dc"
url: http://api.example.com/get_players,
}
Can i use a callback method without the string callback in the url? Thanks!!!
SOLUTION
I had to use and intermediate service because the API does not work with jsonp. JSONP allways include the callback string.