erfaan
25 Apr 2007, 2:05 AM
Hi
I am facing some problem. Most probably a bug in Internet Explorer or ExtJs.
Here is the code.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="css/ytheme-aero.css" />
<style type="text/css">
body, td {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
}
</style>
<script language="javascript" type="text/javascript" src="yui-utilities.js"></script>
<script language="javascript" type="text/javascript" src="ext-yui-adapter.js"></script>
<script language="javascript" type="text/javascript" src="ext-all-debug.js"></script>
<script language="javascript" type="text/javascript">
function ExtJsWindow(showBtnId, dialogId)
{
var dialog, showBtn;
return {
init : function()
{
showBtn = Ext.get(showBtnId);
showBtn.on("click", this.showDialog, this);
},
showDialog : function()
{
if(!dialog)
{
dialog = new Ext.BasicDialog(dialogId, {autoTabs:true, proxyDrag:true, shadow:true, width: 200, height:160 });
}
dialog.show(showBtn.dom);
}
};
}
var Window1 = ExtJsWindow('pushButton', 'myPanel');
Ext.onReady(Window1.init, Window1, true);
</script>
<title>Tabs</title>
</head>
<body>
<input type="button" id="pushButton" value="Push Me!" />
<div id="myPanel" style="visibility: hidden;">
<div class="x-dlg-hd">Tabbed Structure</div>
<div class="x-dlg-bd">
<div class="x-dlg-tab" title="tab1">Here is the content of tab 1</div>
<div class="x-dlg-tab" title="tab2">Here is the content of tab 2</div>
<div class="x-dlg-tab" title="tab3">Here is the content of tab 3</div>
</div>
</div>
</body>
</html>
Browser: Internet Explorer 6.0 (Windows XP SP2 Professional Edition)
Click on the push button. You will see the dialog. Select tab2 or tab3 and close the dialog. Now click on the push button again. You will see that tab2 or tab3 (whichever you clicked last time) is open in the dialog and it is empty. Now resize the dialog or place some other dialog over it. And the contents of this tab will appear suddenly.
Please help me out. I need to fix it.
Thanks
I am facing some problem. Most probably a bug in Internet Explorer or ExtJs.
Here is the code.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="css/ytheme-aero.css" />
<style type="text/css">
body, td {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
}
</style>
<script language="javascript" type="text/javascript" src="yui-utilities.js"></script>
<script language="javascript" type="text/javascript" src="ext-yui-adapter.js"></script>
<script language="javascript" type="text/javascript" src="ext-all-debug.js"></script>
<script language="javascript" type="text/javascript">
function ExtJsWindow(showBtnId, dialogId)
{
var dialog, showBtn;
return {
init : function()
{
showBtn = Ext.get(showBtnId);
showBtn.on("click", this.showDialog, this);
},
showDialog : function()
{
if(!dialog)
{
dialog = new Ext.BasicDialog(dialogId, {autoTabs:true, proxyDrag:true, shadow:true, width: 200, height:160 });
}
dialog.show(showBtn.dom);
}
};
}
var Window1 = ExtJsWindow('pushButton', 'myPanel');
Ext.onReady(Window1.init, Window1, true);
</script>
<title>Tabs</title>
</head>
<body>
<input type="button" id="pushButton" value="Push Me!" />
<div id="myPanel" style="visibility: hidden;">
<div class="x-dlg-hd">Tabbed Structure</div>
<div class="x-dlg-bd">
<div class="x-dlg-tab" title="tab1">Here is the content of tab 1</div>
<div class="x-dlg-tab" title="tab2">Here is the content of tab 2</div>
<div class="x-dlg-tab" title="tab3">Here is the content of tab 3</div>
</div>
</div>
</body>
</html>
Browser: Internet Explorer 6.0 (Windows XP SP2 Professional Edition)
Click on the push button. You will see the dialog. Select tab2 or tab3 and close the dialog. Now click on the push button again. You will see that tab2 or tab3 (whichever you clicked last time) is open in the dialog and it is empty. Now resize the dialog or place some other dialog over it. And the contents of this tab will appear suddenly.
Please help me out. I need to fix it.
Thanks