Threaded View
-
17 Jan 2011 6:15 PM #1
Uncaught SyntaxError: Unexpected token :
Uncaught SyntaxError: Unexpected token :
Hi,
I am new to Sencha touch and trying to get a List from a json data.
but what i see is the Uncaught SyntaxError: Unexpected token : , The console shows the json data as belowCode:Ext.regModel('customer', { fields: [{ name: 'id', type: 'string' }, { name: 'customerPk', type: 'string' }] }); var store = new Ext.data.Store({ autoLoad: true, model: 'customer', proxy: { url: 'http://localhost:8080/restservices/findAllCustomers.json', type: 'scripttag', reader: { root: 'customers' } } });
Thanks for the help.Code:{"customers":[{"id":"InitialDefault","customerPk":61},{"id":"Userdefined","customerPk":21}]}
Similar Threads
-
Uncaught SyntaxError: Unexpected token
By jaquin in forum Sencha Touch 1.x: DiscussionReplies: 6Last Post: 3 Feb 2011, 4:48 AM -
extjs grid, json request getting "Uncaught SyntaxError: Unexpected token :" error
By mschlanser in forum Ext 3.x: Help & DiscussionReplies: 10Last Post: 2 Jan 2011, 4:52 PM -
JSON+decode+syntaxerror
By veereshsh in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 3 Feb 2009, 7:03 PM -
Adding a Token
By boriscy in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 26 Mar 2008, 11:03 AM


Reply With Quote