PDA

View Full Version : dose not work on IE



mnask
8 Apr 2008, 1:50 AM
hi guys ,
i have this Extjs script



Ext.QuickTips.init();
var userid = new Ext.form.Hidden({
id :'selectedAcc',
name :'selectedAcc',
value : 6
});

exchangeWin = function () {

var win = new Ext.Window({

closable:true,
width:320 ,
height:300,
iconCls: 'feed-icon',
constrain:true,
closeAction:'hide',
border:false,
plain:true,
layout: 'fit',
resizable:false,
items:userid,
title:'title bla bla'
});
win.show(this);
}



why it dose not work on IE ???

thanks so much
my regards

evant
8 Apr 2008, 2:02 AM
Are you wrapping it in an onReady block? Why are you pass 'this' to show?

mnask
8 Apr 2008, 2:04 AM
i call this function from html page




<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="../js_lib/ext2/resources/css/ext-all.css" />

<script type="text/javascript" src="../js_lib/ext2/adapter/ext/ext-base.js"></script>
<!-- ENDLIBS -->

<script type="text/javascript" src="../js_lib/ext2/ext-all-debug.js"></script>
<script type="text/javascript" src="common/accProxy.php"></script>

<script type="text/javascript" src="exchange.js"></script>

</head>

<body>
<a href="#" onclick="exchangeWin();">panel</a>
</body>
</html>