PDA

View Full Version : Ext.Window not working in FireFox



sam.arulprakash
10 Jun 2010, 12:18 AM
Hi All,

What i have tried is just attach the HTML table inside Ext.Window.
In IE,Google Chrome it is working fine.
But,In Mozilla Firefox it throws 'tblTest is not defined' Error.

Thanks in advance.

Any suggestions?............

Javascript Code.

function createWindow()
{
try
{
Ext.onReady(function()
{

var win_wdw = new Ext.Window({
applyTo:'win_wdw_div',
layout:'fit',
width:500,
height:460,
modal:true,
plain: true,
items: [tblTest],
closable: true
});
win_wdw.setPosition(50, 50);

win_wdw.show();

});
}
catch(e)
{
alert(e.message);
}
}

HTML Code


<body>
<form id="form1" runat="server">
<div>
<div id="win_wdw_div" runat="server" class="x-hidden"><div class="x-window-header">Hello Dialog</div></div>
<input type="button" runat="server" value="test" onclick="return createWindow();" />

<table id="tblTest" runat="server" style="background-color:Yellow;width:100px;height:100px;">
<tr>
<td>
&nbsp;
</td>
</tr>
</table>
</div>
</form>
</body>
</html>





Thanks & Records,
Arul Prakash.M