PDA

View Full Version : Display Image using jason data



DesiTesh
9 Feb 2010, 1:04 PM
hi,

I'm trying to display image using jason data, but no luck. Here is my code:

//jason value
var jSource = '{"success":true,"result":{..."image_file":"/images/CSIWeb.png"}]}}';

In FormPanel:



items:[ {
xtype:'box',
anchor:'',
isFormField:true,
fieldLabel:'Image',
autoEl:{
tag:'div', children:[{
tag:'img',
qtip:'Tooltip on the image',
//src:'http://extjs.com/deploy/dev/examples/shared/screens/desktop.gif'
src:'{image_file}'
},{
tag:'div',
style:'margin:0 0 4px 0',
}]
}
}
...
When I saw the code view:
<img src="image_file" qtip="Tooltip on the image">
Why am I not getting {image_file} value here....??

Thanks for your help