PDA

View Full Version : A problem at put an applet on a extjs Panel



woshixiaoren
29 Apr 2010, 10:06 PM
I met a problem when I wrote a heml file
this is the source code:

<html>
<head>
<title>Welcome</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!-- ** CSS ** -->
<!-- base library -->
<link rel="stylesheet" type="text/css" href="css/ext-all.css" />
<!-- system library JS-->
<script type="text/javascript" src="js/ext-base.js"></script>
<script type="text/javascript" src="js/ext-all.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
var panel = new Ext.Panel({
renderTo:'test',
title:'hello',
html:'<applet archive="TSAnalyzer2006.jar" code=TSAnalyzer2006.c_TSAnalyzer.class width="1024" height="738" ></applet>'
});
})
</script>
</head>
<body>
<div id="test"></div>
</body>
</html>

in this file, I want to let an Applet show on the Panel of extjs.
if I do not set the width and height of the Applet, as: html:'<applet archive="TSAnalyzer2006.jar" code=TSAnalyzer2006.c_TSAnalyzer.class></applet>', everything is ok

but if I set the width and height, as: html:'<applet archive="TSAnalyzer2006.jar" code=TSAnalyzer2006.c_TSAnalyzer.class width="1024" height="738" ></applet>', when I visit the html file, the applet always started twice.

please help~