harlanhugh
asked on
IE7 converted applet problem
We have the following code which works in IE6 and IE7. We used the Sun HTML converter to use the java plug-in (shown below) which also works in IE6. However, the converted code below does not work in IE7. Need to use the converted code so any help on why it is not working would be greatly appreciated.
<APPLET CODE = "com.thebrain.teambrain.ap plet.TeamB rainApplet .class" JAVA_CODEBASE = "<%=base%>" ARCHIVE = "client.jar" WIDTH = "100%" HEIGHT = "100%" NAME = "tbApplet">
<PARAM NAME = "BASE_URL" VALUE ="<%=baseurl%>">
<PARAM NAME = "KNOWLEDGE" VALUE ="<%=baseurl%>/ControllerS ervlet">
<PARAM NAME = "CONSTRAINTS_URL" VALUE ="<%=baseurl%>/ConstraintS ervlet">
<PARAM NAME = "scriptable" VALUE="true">
<PARAM NAME = "CONTENT_ADAPTER_TARGET" VALUE ="tbmiddleframe">
<PARAM NAME = "ABC" VALUE ="<%=securityMode%>">
<PARAM NAME = "USER_TYPE" VALUE ="<%=userType%>">
<PARAM NAME = "USER_ID" VALUE ="<%=userid%>">
<PARAM NAME = "isSSL" VALUE ="<%=isSecure%>">
<PARAM NAME = "<%=noStartId%>START_ID_FR OM_URL" VALUE = "<%=startId%>">
Sun's HTML Converter code:
<!--"CONVERTED_APPLET"-->
<!-- HTML CONVERTER -->
<script language="JavaScript" type="text/javascript"><!- -
var _info = navigator.userAgent;
var _ns = false;
var _ns6 = false;
var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
//--></script>
<comment>
<script language="JavaScript" type="text/javascript"><!- -
var _ns = (navigator.appName.indexOf ("Netscape ") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProper ty("os.ver sion").ind exOf("3.5" ) < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0) || (_info.indexOf("AIX") > 0) || (_info.indexOf("OS/2") > 0) || (_info.indexOf("IRIX") > 0)));
var _ns6 = ((_ns == true) && (_info.indexOf("Mozilla/5" ) >= 0));
//--></script>
</comment>
<script language="JavaScript" type="text/javascript"><!- -
if (_ie == true) document.writeln('<object classid="clsid:8AD9C840-04 4E-11D1-B3 E9-00805F4 99D93" WIDTH = "100%" HEIGHT = "100%" NAME = "tbApplet" codebase="http://java.sun.com/update/1.5.0/jinstall-1_5-windows-i586.cab#Version=5,0,0,1"><noembed><xmp> ');
else if (_ns == true && _ns6 == false) document.writeln('<embed ' +
'type="application/x-java- applet;ver sion=1.5" \
CODE = "com.thebrain.teambrain.ap plet.TeamB rainApplet .class" \
ARCHIVE = "client.jar" \
NAME = "tbApplet" \
WIDTH = "100%" \
HEIGHT = "100%" \
BASE_URL ="<%=baseurl%>" \
KNOWLEDGE ="<%=baseurl%>/ControllerS ervlet" \
CONSTRAINTS_URL ="<%=baseurl%>/ConstraintS ervlet" \
scriptable ="true" \
CONTENT_ADAPTER_TARGET ="tbmiddleframe" \
ABC ="<%=securityMode%>" \
USER_TYPE ="<%=userType%>" \
USER_ID ="<%=userid%>" \
isSSL ="<%=isSecure%>" \
<%=noStartId%>START_ID_FRO M_URL = "<%=startId%>" ' +
'scriptable=false ' +
'pluginspage="http://java.sun.com/products/plugin/index.html#download"><noembed>< xmp>');
//--></script>
<applet CODE = "com.thebrain.teambrain.ap plet.TeamB rainApplet .class" ARCHIVE = "client.jar" WIDTH = "100%" HEIGHT = "100%" NAME = "tbApplet"></xmp>
<PARAM NAME = CODE VALUE = "com.thebrain.teambrain.ap plet.TeamB rainApplet .class" >
<PARAM NAME = ARCHIVE VALUE = "client.jar" >
<PARAM NAME = NAME VALUE = "tbApplet" >
<param name="type" value="application/x-java- applet;ver sion=1.5">
<param name="scriptable" value="false">
<PARAM NAME = "BASE_URL" VALUE ="<%=baseurl%>">
<PARAM NAME = "KNOWLEDGE" VALUE ="<%=baseurl%>/ControllerS ervlet">
<PARAM NAME = "CONSTRAINTS_URL" VALUE ="<%=baseurl%>/ConstraintS ervlet">
<PARAM NAME = "scriptable" VALUE="true">
<PARAM NAME = "CONTENT_ADAPTER_TARGET" VALUE ="tbmiddleframe">
<PARAM NAME = "ABC" VALUE ="<%=securityMode%>">
<PARAM NAME = "USER_TYPE" VALUE ="<%=userType%>">
<PARAM NAME = "USER_ID" VALUE ="<%=userid%>">
<PARAM NAME = "isSSL" VALUE ="<%=isSecure%>">
<PARAM NAME = "<%=noStartId%>START_ID_FR OM_URL" VALUE = "<%=startId%>">
</applet>
</noembed>
</embed>
</object>
<!--
<APPLET CODE = "com.thebrain.teambrain.ap plet.TeamB rainApplet .class" ARCHIVE = "client.jar" WIDTH = "100%" HEIGHT = "100%" NAME = "tbApplet">
<PARAM NAME = "BASE_URL" VALUE ="<%=baseurl%>">
<PARAM NAME = "KNOWLEDGE" VALUE ="<%=baseurl%>/ControllerS ervlet">
<PARAM NAME = "CONSTRAINTS_URL" VALUE ="<%=baseurl%>/ConstraintS ervlet">
<PARAM NAME = "scriptable" VALUE="true">
<PARAM NAME = "CONTENT_ADAPTER_TARGET" VALUE ="tbmiddleframe">
<PARAM NAME = "ABC" VALUE ="<%=securityMode%>">
<PARAM NAME = "USER_TYPE" VALUE ="<%=userType%>">
<PARAM NAME = "USER_ID" VALUE ="<%=userid%>">
<PARAM NAME = "isSSL" VALUE ="<%=isSecure%>">
<PARAM NAME = "<%=noStartId%>START_ID_FR OM_URL" VALUE = "<%=startId%>">
</APPLET>
-->
<!--"END_CONVERTED_APPLET" -->
<APPLET CODE = "com.thebrain.teambrain.ap
<PARAM NAME = "BASE_URL" VALUE ="<%=baseurl%>">
<PARAM NAME = "KNOWLEDGE" VALUE ="<%=baseurl%>/ControllerS
<PARAM NAME = "CONSTRAINTS_URL" VALUE ="<%=baseurl%>/ConstraintS
<PARAM NAME = "scriptable" VALUE="true">
<PARAM NAME = "CONTENT_ADAPTER_TARGET" VALUE ="tbmiddleframe">
<PARAM NAME = "ABC" VALUE ="<%=securityMode%>">
<PARAM NAME = "USER_TYPE" VALUE ="<%=userType%>">
<PARAM NAME = "USER_ID" VALUE ="<%=userid%>">
<PARAM NAME = "isSSL" VALUE ="<%=isSecure%>">
<PARAM NAME = "<%=noStartId%>START_ID_FR
Sun's HTML Converter code:
<!--"CONVERTED_APPLET"-->
<!-- HTML CONVERTER -->
<script language="JavaScript" type="text/javascript"><!-
var _info = navigator.userAgent;
var _ns = false;
var _ns6 = false;
var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
//--></script>
<comment>
<script language="JavaScript" type="text/javascript"><!-
var _ns = (navigator.appName.indexOf
var _ns6 = ((_ns == true) && (_info.indexOf("Mozilla/5"
//--></script>
</comment>
<script language="JavaScript" type="text/javascript"><!-
if (_ie == true) document.writeln('<object classid="clsid:8AD9C840-04
else if (_ns == true && _ns6 == false) document.writeln('<embed ' +
'type="application/x-java-
CODE = "com.thebrain.teambrain.ap
ARCHIVE = "client.jar" \
NAME = "tbApplet" \
WIDTH = "100%" \
HEIGHT = "100%" \
BASE_URL ="<%=baseurl%>" \
KNOWLEDGE ="<%=baseurl%>/ControllerS
CONSTRAINTS_URL ="<%=baseurl%>/ConstraintS
scriptable ="true" \
CONTENT_ADAPTER_TARGET ="tbmiddleframe" \
ABC ="<%=securityMode%>" \
USER_TYPE ="<%=userType%>" \
USER_ID ="<%=userid%>" \
isSSL ="<%=isSecure%>" \
<%=noStartId%>START_ID_FRO
'scriptable=false ' +
'pluginspage="http://java.sun.com/products/plugin/index.html#download"><noembed><
//--></script>
<applet CODE = "com.thebrain.teambrain.ap
<PARAM NAME = CODE VALUE = "com.thebrain.teambrain.ap
<PARAM NAME = ARCHIVE VALUE = "client.jar" >
<PARAM NAME = NAME VALUE = "tbApplet" >
<param name="type" value="application/x-java-
<param name="scriptable" value="false">
<PARAM NAME = "BASE_URL" VALUE ="<%=baseurl%>">
<PARAM NAME = "KNOWLEDGE" VALUE ="<%=baseurl%>/ControllerS
<PARAM NAME = "CONSTRAINTS_URL" VALUE ="<%=baseurl%>/ConstraintS
<PARAM NAME = "scriptable" VALUE="true">
<PARAM NAME = "CONTENT_ADAPTER_TARGET" VALUE ="tbmiddleframe">
<PARAM NAME = "ABC" VALUE ="<%=securityMode%>">
<PARAM NAME = "USER_TYPE" VALUE ="<%=userType%>">
<PARAM NAME = "USER_ID" VALUE ="<%=userid%>">
<PARAM NAME = "isSSL" VALUE ="<%=isSecure%>">
<PARAM NAME = "<%=noStartId%>START_ID_FR
</applet>
</noembed>
</embed>
</object>
<!--
<APPLET CODE = "com.thebrain.teambrain.ap
<PARAM NAME = "BASE_URL" VALUE ="<%=baseurl%>">
<PARAM NAME = "KNOWLEDGE" VALUE ="<%=baseurl%>/ControllerS
<PARAM NAME = "CONSTRAINTS_URL" VALUE ="<%=baseurl%>/ConstraintS
<PARAM NAME = "scriptable" VALUE="true">
<PARAM NAME = "CONTENT_ADAPTER_TARGET" VALUE ="tbmiddleframe">
<PARAM NAME = "ABC" VALUE ="<%=securityMode%>">
<PARAM NAME = "USER_TYPE" VALUE ="<%=userType%>">
<PARAM NAME = "USER_ID" VALUE ="<%=userid%>">
<PARAM NAME = "isSSL" VALUE ="<%=isSecure%>">
<PARAM NAME = "<%=noStartId%>START_ID_FR
</APPLET>
-->
<!--"END_CONVERTED_APPLET"
ASKER
Yes, I had read that. Unfortunately that does not help in our case.
ASKER
BTW, please note - IE7 actually crashes when it loads the converted HTML page. This is a pretty severe problem.
ASKER
For anyone interested, this is a known bug with Java and IE7. More info can be found here: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6484462
figured as much, most likely they haven't updated it for IE7 yet.
Your best of wrting yourt own html.
Your best of wrting yourt own html.
ASKER
Does anyone know of documentation describing the relevant tags to write this HTML by hand as suggested by objects?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.dynamicdrive.com/forums/archive/index.php/t-13304.html