Hi together,
I've played a bit with the Store and the JsonStore class to load a JSON Object trough the ScriptTagProxy. But i cannot use the JsonStore class, because it fails. Storage works greater.
Here is the Code:
Code:
var store = new Ext.data.Store({
proxy: new Ext.data.ScriptTagProxy({
url: 'http://localhost:8000/jazzy/bookmarks/get/'
}),
reader: new Ext.data.JsonReader({
root: 'bookmarks',
id: 'id'
}, [
{name: 'name', mapping: 'name'},
{name: 'url', mapping: 'url'},
{name: 'creator', mapping: 'creator', type: 'int'},
])
});
works fine.
Code:
var store = new Ext.data.JsonStore({
proxy: new Ext.data.ScriptTagProxy({
url:"http://localhost:8000/jazzy/bookmarks/get/"
}),
root: 'bookmarks',
fields: [
'name', 'url',
{name:'creator', type: 'int'},
]
});
doesn't work for me. My Firebug says:
Code:
url has no properties
[Break on this error] url += (url.indexOf('?') != -1 ? '&' : '?') + '_dc=' + (new Date...
May anyone help me?
Thanks, phxx