new Ext.Panel({
id : 'imagePanel',
region : 'center',
layout: 'fit',
border : false,
autoScroll : true,
modal:true,
html : "<img height = " + height + " src" + Xy.Consts.AppBase + "attachMgmt/viewPhotoFile.do?attachmentId=" + dataId + ">" //指定url路径
})
在别的地方获取htm中这个img标签对象,
new Ext.Panel({
id : 'imagePanel',
region : 'center',
layout: 'fit',
border : false,
autoScroll : true,
modal:true,
html : "" //指定url路径
})
上面代码怎么不显示了。。。。
html : "<img id='myImg' height = " + height + " src" + Xy.Consts.AppBase + "attachMgmt/viewPhotoFile.do?attachmentId=" + dataId + ">"
增加id
其他地方是什么意思?同一个页面的其他代码还是其他页面的?其他页面看这个:iframe和父页,window.open打开页面之间的引用
同一个页面直接document.getEelementById('myImg')获得