PDA

View Full Version : Problem in getting started tutorial



mohsinali
2 Feb 2013, 1:32 PM
Hi,
I am using the getting started tutorial on sencha touch website. I am trying to create a blog by fetching the json data from google, as given in tutorial.

It is throwing this warning message:
"[WARN][Anonymous] [Ext.Loader] Synchronously loading 'Ext.dataview.List'; consider adding 'Ext.dataview.List' explicitly as a require of the corresponding class"

Then in my code I added required classes as:


Ext.define('gs.view.Blog', {
extend: 'Ext.navigation.View',
xtype: 'blog',
requires: [
'Ext.dataview.List',
'Ext.data.proxy.JsonP'
],


But after adding this code I am getting this error:
Uncaught TypeError: Expecting a function in instanceof check, but got #<Object>
...
...
...


Anybody please help me...

mitchellsimoens
4 Feb 2013, 6:39 AM
Can we see the whole Blog class?

evolance
13 May 2013, 4:10 PM
Did you solve this? Im getting the same error. My Js file is:




Ext.define('LqqMovil.view.Lista', {
extend: 'Ext.navigation.View', //transiciones entre listas
xtype: 'lista',


requires: [
'Ext.dataview.List',
'Ext.data.proxy.JsonP'
],


config: {
title: 'Restaurantes',
iconCls: 'star',


items: {
xtype: 'list',
itemTpl: '{title}', //render por cada item


store: {
autoLoad: true,
fields: ['title', 'author', 'content'],


proxy: {
xtype: 'jsonp',
url: 'https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://feeds.feedburner.com/SenchaBlog',


reader: {
type: 'json',
rootProperty: 'reponseData.feed.entries'
}
}
}
}
}


})

egolts
31 May 2013, 3:18 PM
I am having the same problem as well. Even in the video the narrator mentions he will fix this when the messages show up in the console, but then never does. My code:


Ext.define('SenchaTest.view.Blog', {

extend: 'Ext.navigation.View',
xtype: 'blog',
requires: [
'Ext.dataview.List'
],

config: {
title: 'Blog',
iconCls: 'star',

items: [
{
xtype: 'list',
itemTpl: '{title}',

store: {
autoLoad: true,
fields: ['title', 'summary'],
pageSize: 3,


proxy: {
type: 'jsonp',
url: 'https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://feeds.feedburner.com/SenchaBlog',
reader: {
type: 'json',
rootProperty: 'responseData.feed.entries'
}
}
}

}
]
}


});

egolts
31 May 2013, 3:54 PM
solution here:
http://www.sencha.com/forum/showthread.php?195024