PDA

View Full Version : can i store json string to Ext.data.store?



a2rdvark
28 Oct 2010, 2:36 AM
hello.

my problem is i want to store json string to Ext.data.store data type. but i don't know how.

i can get json string by using below code :

var jsonString;

Ext.util.JSONP.request({
url : 'http://...cross domain address...',
callbackKey : 'callback',
callback : function(data){
jsonString = data.results;
}
});

after this work how can i store jsonString to Ext.data.store or Ext.data.jsonstore?

thx for reading my question.

i'll wait your help

evant
28 Oct 2010, 2:40 AM
Use a ScriptTagProxy instead.

a2rdvark
28 Oct 2010, 3:26 PM
thx. i'll try to use scriptTagProxy