View Full Version : JAVA applet with height in percentage

19 Oct 2007, 12:32 AM

I am not sure if it is an issue that with EXTJS. I've got a composite layout and in one of the panel I have a java applet with the height attribute in %, running in IE6. The applet didn't show up and from the java console debugging there is no evidence that it started at all. However if the applet height is specified in absolution pixels or no specified at all, it works. Do you think this is a problem that the layout cannot report it's current visible height back to the JAVA somehow? I really have no idea where to post it, is it an IE issue, JAVA issue or EXT JS issue??


5 Dec 2007, 7:12 PM
var basePath=''
var printApplet=function(id){
return "<APPLET id='"+id+"' CODE='PrintReportApplet.class' CODEBASE='"+basePath+"/common/printApplet' " +"ARCHIVE='jasperreports-2.0.1-applet.jar,applet.jar' WIDTH='100%'HEIGHT='100%'>"
+"<PARAM NAME='type' VALUE='application/x-java-applet;version=1.2.2'>"
+"<param name='wmode' value='transparent' /> "
+"<PARAM NAME='scriptable' VALUE='false'>"

var viewport = new Ext.Viewport( {
layout : 'border',
// autoShow :true,
hideBorders : true,
autoScroll : true,
bodyStyle : 'background-color:DFE8F6',
items : [
region : "center",
id : 'workspace',
title : '查询结果',
autoScroll : true,
border : true,
html :printApplet("x-workspace")