1

I'm using this code to define an applet with jar cache versioning:

<object classid="clsid:CAFEEFAC-0014-0002-0000-ABCDEFFEDCBA">
<param name="width" value="500" />
<param name="height" value="200" />
<param name="codebase" value="client/" />
<param name="name" value="FooApplet" />
<param name="codetype" value="application/x-java-applet" />
<param name="cache_option" value="plugin" />
<param name="cache_archive" value="a.jar, b.jar, c.jar, d.jar" />
<param name="cache_version" value="1.0.0.0, 1.0.0.0, 1.0.0.0, 1.0.0.0" />
<param name="code" value="com.teo.MyClass.class" />
<param name="initial_focus" value="false"/>
</object>

My code is a lot bigger, i have more jars than this but only 3 get downloaded. And I don't understand what makes these 3 jars special because you can find all the jars in the codebase folder.

Any help would be appreciated.

UPDATE: it seems the jars are downloaded, to a separate cache, because I enabled some tracing in the Java console. But my .class file is not found by the applet in one of the jars although the jar is downloaded.

UPDATE 2: i figured this out: if you have a version.xml file your cache_version values should correspond to the versions in the version.xml. This is essentially the same as the versioned Java Web Start protocol for JNLP.


  **//here is the script**

  <script src="Scripts/Jquery.js" type="text/javascript"></script>
 <script type="text/javascript">
    jQuery(function ($) {
        $('#min1').click(function () {
            var iframeheight = $('#iframe1').width();
            if (iframeheight == 934) {
                $('#iframe1').width(462);
                document.getElementById('divFrame2').style.display = "block";
            }
        });
        $('#max1').click(function () {
            var iframeheight = $('#iframe1').width();
            if (iframeheight == 462) {
                $('#iframe1').width(934);
                document.getElementById('divFrame2').style.display = "none";
            }
        });
        $('#min2').click(function () {
            var iframeheight = $('#iframe2').width();
            if (iframeheight == 934) {
                $('#iframe2').width(462);
                document.getElementById('divFrame1').style.display = "block";
            }
        });
        $('#max2').click(function () {
            var iframeheight = $('#iframe2').width();
            if (iframeheight == 462) {
                $('#iframe2').width(934);
                document.getElementById('divFrame1').style.display = "none";
            }
        });
    });
     </script>

    **//style**
     <style type="text/css">
    .bdr
    {
        border: 1px solid #6593cf;
    }
  </style>

  **//aspx sample**
   <form id="form1" runat="server">
    <table><tr><td >
    <div id="divFrame1" class="bdr">
        <div>
            <img id="min1" src="Images/Minimize.jpg" width="13" height="14" border="0" alt="" />
            <img id="max1" src="Images/Maximize.jpg" name="Image6" width="13" height="14" border="0"
                id="Image6" alt="" />
        </div>
        <iframe name="content" id="iframe1" src="http://www.dynamicdrive.com/forums/archive/index.php/t-2529.html"
            frameborder="0" height="321" width="462"></iframe>
       </div>
    </td ><td >
    <div id="divFrame2" class="bdr">
        <div>
            <img id="min2" src="Images/Minimize.jpg" width="13" height="14" border="0" alt="" />
            <img id="max2" src="Images/Maximize.jpg" name="Image6" width="13" height="14" border="0"
                id="Image7" alt="">
        </div>
        <iframe name="content" id="iframe2" src="http://www.w3schools.com/default.asp" frameborder="0"
            height="321" width="462"></iframe>
    </div>
    </td></tr></table>
    </form>
4

0 に答える 0