
Originally Posted by
evant
Would suggest you read the introductory docs about how the jsonp proxy works, it's quite detailed and explains how it all works. After that you'll see why it doesn't work.
Just to clear.
I cannot use the JsonP with my store and proxy. I have to make a call like below?
Code:
Ext.data.JsonP.request({ url: 'http://example.com/script.php',
callbackKey: 'callback',
params: {
data: Ext.encode(values)
},
success : function(response) {
console.log("Spiffing, everything worked");
// success property
console.log(response.success);
// result property
console.log(response.result);
},
failure: function(response) {
console.log(response);
Ext.Msg.alert('Error', 'Please try again.', Ext.emptyFn);
}
});