View Full Version : setProxy

8 Jun 2011, 10:22 PM
I use DataStore on my application, and I have a List component that will hold data from server side formatted in JSON.

Every time I trigger this code

type: 'ajax',
url: 'data/category.php?id='+record.id,
reader: {
type: 'json',
root: 'category'

And I got this error message

Uncaught TypeError: Cannot read property 'length' of undefined

Then the list loading is continually spinning.

What will be the best solution for this.

Thank you in advance. :)

10 Jun 2011, 5:19 AM
What version of ExtJS are you using? That looks like Ext 4, this section of the forum is for Ext 3.

13 Jun 2011, 8:44 PM
I used Sencha touch 1.1.0 for mobile device application development. I have tried to checked the JSON response from server and it was valid, that is why I am wondering where I got this error message.

Uncaught TypeError: Cannot read property 'length' of undefined