您的位置:首页 > Web前端 > JavaScript

extjs:如何动态修改panel的html值

2013-10-16 00:26 393 查看
如下,一个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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: