By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,267 Members | 1,808 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,267 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.

Jul 23 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"Dag Sunde" <me@dagsunde.com> wrote in
news:JM*******************@juliett.dax.net:
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.


If you access the Applet from HTML or Javascript you are supposed to have

<PARAM name="scriptable" value="true">
this is needed for tthe plugin 1.4 or better.
You have <param name = "mayscript" value ="true"/> which is useful only
when you access javascript or DOM element from Java.

Also you said that you have the plugin 1.4.2 but in the OBJECT tag you
have a reference to the version 1.3

Bye.
--
Real Gagnon from Quebec, Canada
* Looking for Java or PB snippets ? Visit Real's How-to
* http://www.rgagnon.com/howto.html
Jul 23 '05 #2

P: n/a
"Real Gagnon" <realgagnon_@_yahooSpamIsBadSstripunderscore.com > wrote in
message news:Xn**********************************@140.99.9 9.130...
"Dag Sunde" <me@dagsunde.com> wrote in
news:JM*******************@juliett.dax.net:
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.
If you access the Applet from HTML or Javascript you are supposed to have

<PARAM name="scriptable" value="true">
this is needed for tthe plugin 1.4 or better.


I did some testing, and found that the "scriptable" parameter
is not enforced in java 1.4.1_21, but *is* enforced in 1.4.2_06.

You have <param name = "mayscript" value ="true"/> which is useful only
when you access javascript or DOM element from Java.
I know, but I thought it worked for both... :-\

Also you said that you have the plugin 1.4.2 but in the OBJECT tag you
have a reference to the version 1.3


That is because my applet requires 1.3 or higher...
Thanks a lot for the pointer, it certainly helped solve my problem.

--
Dag.
Jul 23 '05 #3

P: n/a
Real Gagnon wrote:
"Dag Sunde" <me@dagsunde.com> wrote in
news:JM*******************@juliett.dax.net:
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.


If you access the Applet from HTML or Javascript you are supposed to
have

<PARAM name="scriptable" value="true">
this is needed for tthe plugin 1.4 or better.
You have <param name = "mayscript" value ="true"/> which is useful
only when you access javascript or DOM element from Java.

Also you said that you have the plugin 1.4.2 but in the OBJECT tag you
have a reference to the version 1.3


He could also be missing the JVM for what ever browser he is using
(IE?), as IE6 stopped coming with a JVM. You can use MS's or Sun's.
Jul 23 '05 #4

P: n/a
On Sat, 23 Oct 2004 20:32:51 -0700, Alfred Z. Newmane wrote:

(VM's)
You can use MS's or Sun's.


Find out which..
<http://www.physci.org/pc/property.jsp?prop=java.version>

[ X-post retained. ]

HTH

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
Jul 23 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.