如下,一个panel,如何动态更新其中的html的值,其实就是要更改frame里面的url
var p = new Ext.Panel({
title: 'My Panel',
collapsible:true,
width:400,
id:’panel1’,
html:'<iframe scrolling="auto" frameborder="0" width="100%" height="100%" src="PagingGrid.jsp"></iframe>'
});
方法:
Ext.getCmp(‘panel1’).body.update('<iframe scrolling="auto" frameborder="0" width="100%" height="100%" src="PagingGrid11.jsp"></iframe>');
转自:http://minyoad.yo2.cn/articles/howto-update-panels-html-in-extjs.html
本文介绍如何在Ext.js中动态更改面板内的iframe链接,通过使用Ext.getCmp()和body.update()方法来更新iframe的src属性。
352

被折叠的 条评论
为什么被折叠?



