Solved

IE7 converted applet problem

Posted on 2006-10-26
8
280 Views
Last Modified: 2008-02-01
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.applet.TeamBrainApplet.class" JAVA_CODEBASE = "<%=base%>" ARCHIVE = "client.jar" WIDTH = "100%" HEIGHT = "100%" NAME = "tbApplet">
<PARAM NAME = "BASE_URL" VALUE ="<%=baseurl%>">
<PARAM NAME = "KNOWLEDGE" VALUE ="<%=baseurl%>/ControllerServlet">
<PARAM NAME = "CONSTRAINTS_URL" VALUE ="<%=baseurl%>/ConstraintServlet">
<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_FROM_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.getProperty("os.version").indexOf("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-044E-11D1-B3E9-00805F499D93" 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;version=1.5" \
            CODE = "com.thebrain.teambrain.applet.TeamBrainApplet.class" \
            ARCHIVE = "client.jar" \
            NAME = "tbApplet" \
            WIDTH = "100%" \
            HEIGHT = "100%" \
            BASE_URL ="<%=baseurl%>" \
            KNOWLEDGE ="<%=baseurl%>/ControllerServlet" \
            CONSTRAINTS_URL ="<%=baseurl%>/ConstraintServlet" \
            scriptable ="true" \
            CONTENT_ADAPTER_TARGET ="tbmiddleframe" \
            ABC ="<%=securityMode%>" \
            USER_TYPE ="<%=userType%>" \
            USER_ID ="<%=userid%>" \
            isSSL ="<%=isSecure%>" \
            <%=noStartId%>START_ID_FROM_URL = "<%=startId%>" ' +
         'scriptable=false ' +
         'pluginspage="http://java.sun.com/products/plugin/index.html#download"><noembed><xmp>');
//--></script>
<applet  CODE = "com.thebrain.teambrain.applet.TeamBrainApplet.class" ARCHIVE = "client.jar" WIDTH = "100%" HEIGHT = "100%" NAME = "tbApplet"></xmp>
    <PARAM NAME = CODE VALUE = "com.thebrain.teambrain.applet.TeamBrainApplet.class" >
    <PARAM NAME = ARCHIVE VALUE = "client.jar" >
    <PARAM NAME = NAME VALUE = "tbApplet" >
    <param name="type" value="application/x-java-applet;version=1.5">
    <param name="scriptable" value="false">
    <PARAM NAME = "BASE_URL" VALUE ="<%=baseurl%>">
    <PARAM NAME = "KNOWLEDGE" VALUE ="<%=baseurl%>/ControllerServlet">
    <PARAM NAME = "CONSTRAINTS_URL" VALUE ="<%=baseurl%>/ConstraintServlet">
    <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_FROM_URL" VALUE = "<%=startId%>">


</applet>
</noembed>
</embed>
</object>

<!--
<APPLET CODE = "com.thebrain.teambrain.applet.TeamBrainApplet.class" ARCHIVE = "client.jar" WIDTH = "100%" HEIGHT = "100%" NAME = "tbApplet">
<PARAM NAME = "BASE_URL" VALUE ="<%=baseurl%>">
<PARAM NAME = "KNOWLEDGE" VALUE ="<%=baseurl%>/ControllerServlet">
<PARAM NAME = "CONSTRAINTS_URL" VALUE ="<%=baseurl%>/ConstraintServlet">
<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_FROM_URL" VALUE = "<%=startId%>">


</APPLET>
-->
<!--"END_CONVERTED_APPLET"-->
0
Comment
Question by:harlanhugh
  • 4
  • 2
8 Comments
 
LVL 92

Expert Comment

by:objects
Comment Utility
0
 

Author Comment

by:harlanhugh
Comment Utility
Yes, I had read that. Unfortunately that does not help in our case.
0
 

Author Comment

by:harlanhugh
Comment Utility
BTW, please note - IE7 actually crashes when it loads the converted HTML page. This is a pretty severe problem.
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:harlanhugh
Comment Utility
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
0
 
LVL 92

Expert Comment

by:objects
Comment Utility
figured as much, most likely they haven't updated it for IE7 yet.
Your best of wrting yourt own html.
0
 

Author Comment

by:harlanhugh
Comment Utility
Does anyone know of documentation describing the relevant tags to write this HTML by hand as suggested by objects?
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
Comment Utility
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
basic hardware to learn oop advanced design patterns 3 72
endX challenge 2 48
strDist challenge 35 84
HashMap Vs TreeMap 12 48
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now