dcave555
26 Mar 2007, 12:01 AM
Hello all
i am trying to create dialog that have iframe with other html page.
my code is :
var dialog;
function ShowDialog()
{
var toggleTheme = function(){
Ext.get(document.body, true).toggleClass('ytheme-gray');
};
if(!dialog){
dialog=new Ext.BasicDialog('container',{
autoCreate:{
tag:'div',
cls:'x-dlg',
children:[
{
tag:'div',
cls:'x-dlg-hd'
},
{
tag:'iframe',
cls:'x-dlg-bd',
src:"fmNewCompany.htm",
frameborder: 0,
name: 'dialogFrame',
id:'dialogFrame'
},
{
tag:'div',
cls:'x-dlg-ft'
}
]
},
height:520,
width:550,
shadow: true,
modal: true,
draggable:true,
fixedcenter:true
});
dialog.addKeyListener(27, dialog.hide, dialog);
dialog.addButton('Submit', dialog.hide, dialog);
dialog.addButton('Close', dialog.hide, dialog);
}
dialog.show();
}
i can see the dialog but i can't see iframe with my page.
Please help me
thx
i am trying to create dialog that have iframe with other html page.
my code is :
var dialog;
function ShowDialog()
{
var toggleTheme = function(){
Ext.get(document.body, true).toggleClass('ytheme-gray');
};
if(!dialog){
dialog=new Ext.BasicDialog('container',{
autoCreate:{
tag:'div',
cls:'x-dlg',
children:[
{
tag:'div',
cls:'x-dlg-hd'
},
{
tag:'iframe',
cls:'x-dlg-bd',
src:"fmNewCompany.htm",
frameborder: 0,
name: 'dialogFrame',
id:'dialogFrame'
},
{
tag:'div',
cls:'x-dlg-ft'
}
]
},
height:520,
width:550,
shadow: true,
modal: true,
draggable:true,
fixedcenter:true
});
dialog.addKeyListener(27, dialog.hide, dialog);
dialog.addButton('Submit', dialog.hide, dialog);
dialog.addButton('Close', dialog.hide, dialog);
}
dialog.show();
}
i can see the dialog but i can't see iframe with my page.
Please help me
thx