extjs 弹出windowsurl

代码
function buildWindow(url) {
var DisplayPanel
= new Ext.TabPanel({
width:
350,
id:
"tt",
title:
"dfsdf",
height:
500,
width:
400,
autoScroll:
true,
activeTab:
0,
frame:
true,
autoDestroy:
false

});
var tan
=DisplayPanel.add({
id:
"ee",
title:
"sdf",
height:
500,
width:
400,
autoScroll:
true,
closable:
true,
autoLoad: {
showMask:
true,
url: url,
mode:
'iframe',
maskMsg:
'Loading ' + '...'
}});
var win
= new Ext.Window({
id:
"ww",
layout:
"fit",
autoScroll:
true,
title:
"Source code",
iconCls:
"icon-pagewhitecode",
width:
600,
height:
600,
maximizable:
true,
autoShow:
true,
plain:
true,
resizable:
false,
shadow:
false,
bufferResize:
true,
modal:
true,
items:[DisplayPanel]

});

win.show();
}

 

<ext:Button ID="Button1" runat="server" Text="Submit">
        <Listeners>
            <Click Handler="buildWindow('Default.aspx')" />
        </Listeners>
    </ext:Button>

posted @ 2010-04-01 15:46  ooee  阅读(290)  评论(0编辑  收藏  举报