crazy
24 Sep 2009, 11:26 PM
hi all,
i am giving my code below.
var testStore = new Ext.data.JsonStore({
url: 'getImages.php', //'get-images.php',
root: 'imageDetails',
autoLoad: true,
fields: [{name: 'from', type: 'string'}, {name: 'details', type: 'string'}, {name: 'comments', type: 'string'}, 'url']
});
imagePanel = new Ext.Panel({
height: 500,
frame: true,
autoScroll:true,
items: [
new Ext.Panel({
items: new Ext.DataView({
store: testStore,
tpl: tpl,
itemSelector:'div.thumb-wrap'
}),
html: '<br /><br /><hr /><br />'
})
]
});
and my question is how can i retrieve the values from each fields('from, 'details' ...)
in my 'imagePanel', i am getting the image from the url
but how i get the other details....
help plz...
i am giving my code below.
var testStore = new Ext.data.JsonStore({
url: 'getImages.php', //'get-images.php',
root: 'imageDetails',
autoLoad: true,
fields: [{name: 'from', type: 'string'}, {name: 'details', type: 'string'}, {name: 'comments', type: 'string'}, 'url']
});
imagePanel = new Ext.Panel({
height: 500,
frame: true,
autoScroll:true,
items: [
new Ext.Panel({
items: new Ext.DataView({
store: testStore,
tpl: tpl,
itemSelector:'div.thumb-wrap'
}),
html: '<br /><br /><hr /><br />'
})
]
});
and my question is how can i retrieve the values from each fields('from, 'details' ...)
in my 'imagePanel', i am getting the image from the url
but how i get the other details....
help plz...