Calling rest json api from my site using proxy,but firebug console throws error "SyntaxError: missing ; before statement"
SyntaxError: missing ; before statement
Here is my code
Ext.define('User', {
extend: 'Ext.data.Model',
fields: ['ip']
});
var jsonStore = new Ext.data.Store({
model: "User",
proxy: {
type: 'jsonp',
url: 'http://mysite.com/ip',
useSimpleAccessors: true
},
autoLoad: true,
crossDomain: true
});
jsonStore.load();
Is it a problem with response,tried changing type:'json' but it looks into the local json file location.
if any correction required in json url response what needs to be done.
SyntaxError: missing ; before statement
Aucun commentaire:
Enregistrer un commentaire