473,623 Members | 2,693 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.getEle mentById('bidAp plet').clearTab le
returns 'undefined' all of a sudden...)

function clearJavaTable( ) {
var javaBidTable;

if (typeof document.getEle mentById('bidAp plet').clearTab le != 'undefined')
{
javaBidTable = document.getEle mentById('bidAp plet');
javaBidTable.cl earTable();
}
}

The Java method in question is defined as:

public void clearTable()
{
// Clear the rest of the table...
for(int i=0; i<table.getRowC ount(); i++)
{
table.setValueA t("", i, COL_PRICE);
table.setValueA t("", i, COL_VOLUME);
table.setValueA t("", i, COL_DURATION);
table.setValueA t("", i, COL_REST_TIME);
table.setValueA t("", i, COL_STATIONGROU P);
table.setValueA t("", i, COL_COMMENT);
}
}

My Java (plugin) version is 1.4.2_06

The page embedding the applet is defined as:
<div class="appletLa yer">
<object
id="bidApplet"
classid = "clsid:8AD9 C840-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#Versi on=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
="applicatio n/x-java-applet;version= 1.3"/>
<param name ="stationGroups " value ="<%=sStationGr oups%>"/>
<param name ="durationRange " value ="<%=durationRa nge%>"/>
<param name ="restRange" value ="<%=restRange% >"/>
</object>
</div>

Anyone have a clue as what may cause this?

TIA...

--
Dag.

Jul 23 '05 #1
4 2564
"Dag Sunde" <me@dagsunde.co m> wrote in
news:JM******** ***********@jul iett.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="scriptabl e" 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_@_y ahooSpamIsBadSs tripunderscore. com> wrote in
message news:Xn******** *************** ***********@140 .99.99.130...
"Dag Sunde" <me@dagsunde.co m> wrote in
news:JM******** ***********@jul iett.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="scriptabl e" 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.co m> wrote in
news:JM******** ***********@jul iett.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="scriptabl e" 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?pr op=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
3377
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: 1. An html page that holds the applet. 2. a php page that accepts data submitted to it by the applet via the $_POST array and writes it to the mysql database. This page never makes it to the browser window. 3. a simple Thank you page that shows...
8
5757
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 those brain cells are now gone... This book seems to imply that applets built with Java 2 (SDK 1.4) won't run in IE! It says IE only supports Java 1.0 and 1.1. As my primary aim is to build an applet for sharing from my personal web page, I'm...
0
9869
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 ********************************** package Celcom.Client;
18
2880
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 Java's showDocument method, which opens new browser windows, is blocked by some pop-up blockers. The showDocument method is blocked even if the user clicked a button in a Java program to call showDocument. As a result, a type of user-initiated...
2
2083
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 = document.getElementById('myApplet').getTableAsSDV(); } The code above have been working in IE, NS anf Firefox for a long time now, but have suddenly stopped working in IE 6, on WIN XP SP1.
1
9623
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 and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the best Newsgroup for support with JAVA?
0
1568
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 console java.lang.NullPointerException at com.atonesoftware.web.applet.transfer.client.http.HTTPTransfer.autoDetectProxy(HTTPTransfer.java:326)
2
2653
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. Something related to JRE is not allowing to display this applet through browser. Even I tried by uninstalling & reinstalling JRE and ended up with same problem. Can anyone tell whats problem on my PC. Here is the error which I am getting in java...
0
8160
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8603
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8312
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7132
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6104
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4067
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2590
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.