Scripting a Java applet stopped working after reinstall of XP...

Discussion in 'Javascript' started by Dag Sunde, Oct 20, 2004.

  1. Dag Sunde

    Dag Sunde Guest

    I've been working on a system that have been running
    for the last couple of years, but stopped working
    on my dev. machine after reinstalling WinXP yesterday.

    To my knowledge, it have been set up with the same
    version of tools as I've always used.

    The following function does not call .clearTable() anymore.
    (That is...
    typeof document.getElementById('bidApplet').clearTable
    returns 'undefined' all of a sudden...)

    function clearJavaTable() {
    var javaBidTable;

    if (typeof document.getElementById('bidApplet').clearTable != 'undefined')
    {
    javaBidTable = document.getElementById('bidApplet');
    javaBidTable.clearTable();
    }
    }

    The Java method in question is defined as:

    public void clearTable()
    {
    // Clear the rest of the table...
    for(int i=0; i<table.getRowCount(); i++)
    {
    table.setValueAt("", i, COL_PRICE);
    table.setValueAt("", i, COL_VOLUME);
    table.setValueAt("", i, COL_DURATION);
    table.setValueAt("", i, COL_REST_TIME);
    table.setValueAt("", i, COL_STATIONGROUP);
    table.setValueAt("", i, COL_COMMENT);
    }
    }

    My Java (plugin) version is 1.4.2_06

    The page embedding the applet is defined as:
    <div class="appletLayer">
    <object
    id="bidApplet"
    classid = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    width = "415"
    height = "150"
    align = "middle"
    vspace = "0"
    hspace = "0"
    codebase =
    "http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,1
    ,0">
    <param name = "code" value = "no.orion.rkom.BidApplet"/>
    <param name = "codebase" value = ".">
    <param name = "archive" value = "rkom.jar"/>
    <param name = "name" value = "bidApplet"/>
    <param name = "mayscript" value ="true"/>
    <param name ="type" value
    ="application/x-java-applet;version=1.3"/>
    <param name ="stationGroups" value ="<%=sStationGroups%>"/>
    <param name ="durationRange" value ="<%=durationRange%>"/>
    <param name ="restRange" value ="<%=restRange%>"/>
    </object>
    </div>

    Anyone have a clue as what may cause this?

    TIA...

    --
    Dag.
     
    Dag Sunde, Oct 20, 2004
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?QmV2ZSBMeW5p?=
    Replies:
    0
    Views:
    449
    =?Utf-8?B?QmV2ZSBMeW5p?=
    Jan 19, 2005
  2. =?Utf-8?B?QmV2ZSBMeW5p?=
    Replies:
    8
    Views:
    3,507
    =?Utf-8?B?QmV2ZSBMeW5p?=
    Feb 11, 2005
  3. Dag Sunde
    Replies:
    4
    Views:
    534
    Andrew Thompson
    Oct 24, 2004
  4. Replies:
    0
    Views:
    434
  5. stephen
    Replies:
    2
    Views:
    1,546
    =?Utf-8?B?UGFuZHVyYW5nIE5heWFr?=
    Jun 17, 2006
  6. Replies:
    0
    Views:
    702
  7. Ulf Meinhardt
    Replies:
    0
    Views:
    772
    Ulf Meinhardt
    Jul 7, 2009
  8. Dag Sunde
    Replies:
    2
    Views:
    203
    Dag Sunde
    Mar 2, 2005
Loading...