473,385 Members | 2,069 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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
4 2546
"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
"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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: apchar | last post by:
I am trying to use php as a kind of servlet to act as a middle man between a java applet and mysql. I know java has jdbc but it's flakey and painful. php access to mysql is much nicer. So I have:...
8
by: Dave D | last post by:
I just read something that spooked me. I'm a newbie working my way through "SAMS Teach Youself Java 2 in 21 Days." I used to code a bit in Symantec's Visual Cafe for Java about 3 years ago, but...
0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
18
by: Mickey Segal | last post by:
On comp.lang.java.programmer we are discussing problems created for Java programs by pop-up blockers (in the thread "showDocument blocked by new microsoft pop-up blocker"). Our problem is that...
2
by: Dag Sunde | last post by:
I have the following code fragment in one of my pages: if (typeof document.getElementById('myApplet').getTableAsSDV != 'undefined') { rowBuffer =...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
0
by: gezkk | last post by:
hi, i m using http proxy service to get proxy and host to applet, its working fine with jdk1.5 but getting java.lang.NullPointerException in jdk1.6 And the following is mseeage contains java...
2
by: pssraju | last post by:
Hi, I am having applet display problem on my PC and the same thing working fine on some of my colleagues PC's. When I cross checked content through view source its exactly same on both the PC's....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.