ここで、JSON から詳細を表示するために使用したコード、画像を除くすべての詳細が適切に表示されます。画像を表示しようとすると、画像に表示されません。
JSON メソッド
Ext.Ajax.request({
url: App.gvars.apiurl + 'ShowItemsByItemID/userID='+App.gvars.userid+'/itemID='+itemID, // url : this.getUrl(),
method: "GET",
useDefaultXhrHeader: false,
withCredentials: true,
success: function (response) {
var respObj = Ext.JSON.decode(response.responseText);
Ext.getCmp('myitemname').setValue(respObj[0].itemName);
Ext.getCmp('myitemdesc').setValue(respObj[0].itemDesc);
Ext.getCmp('myitemprice').setValue(respObj[0].itemPrice);
Ext.getCmp('myshopurl').setValue(respObj[0].itemAddress);
Ext.getCmp('myproductpic').setValue(respObj[0].itemImage); //Here the image getting
},
failure: function (response) {
alert(response.responseText);
}
});
パネルはこちら
{
xtype: 'panel',
height:'100px',
docked: 'bottom',
html:'<div align="center" style="padding-top:30px;"><img src="resources/img/icon1.png" id="myproductpic" /> <img src="resources/img/icon2.png" id="myimglocation" /></div>'
}
「myproductpic」領域にbase64変換された画像を表示する方法.解決するのを手伝ってください