473,396 Members | 1,714 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,396 software developers and data experts.

change applet's parameters (I am rookie)

Hi I am a JavaScript rookie.
I have an applet and want to change it's parameters with multiple links in
my page.
How can I do it?
this is my code:

<applet code="GIS.class">
<param id="moneyID" name="money" value="100">
<param id="vicimsID" name="vicims" value="2">
<param id="countryID" name="country" value="UK">
</applet>

How to create a function that will be called from some links and change the
values according to the user's values (from a textbox or anything else).
Jul 23 '05 #1
3 2496


Dimitris (GIS) wrote:
I have an applet and want to change it's parameters with multiple links in
my page.
How can I do it?
this is my code:

<applet code="GIS.class">
<param id="moneyID" name="money" value="100">
<param id="vicimsID" name="vicims" value="2">
<param id="countryID" name="country" value="UK">
</applet>

How to create a function that will be called from some links and change the
values according to the user's values (from a textbox or anything else).


While JavaScript using the DOM can certainly change the value attribute
of a HTML <param> element that does not cause the applet to reread the
parameter so I don't see how that would help.
If you want to be able to use script to have an applet change then the
applet needs to expose a public API which JavaScript then calls using
LiveConnect.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2
VK
If both the page and the applet are from the same server:
From JavaScript to applet: document.applets[0].MethodName(value);
where MethodName() is a PUBLIC method of your applet
May be broken or locked on diff browsers on diff circumstances (it's a
mess worst that in my home office).

From applet to javascript:


jsCall = new URL("javascript:void("+jsCommands+")");
this.showDocument(jsCall);

Non-legitim way, but the only one that really works.

Jul 23 '05 #3
Martin Honnen wrote:
If you want to be able to use script to have an applet change then the
applet needs to expose a public API which JavaScript then calls using
LiveConnect.


.... in the NS4 DOM or XPConnect in the Gecko DOM.
PointedEars
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: ~John Hemans~ | last post by:
Hi, I have a popup window which is sized correctly for the content on a number of pages in a presentation. However, from the last page of the presentation I need to link to a new page (still...
2
by: Dimitris \(GIS\) | last post by:
I have an applet and I want to be able to change its parameters with a button or a link from a HTML page. How can I do it? For example: <param name="earthquake" value="25"> Thanks Dimitris
4
by: Rod | last post by:
I've got 2 ASP.NET WebPages that I've written in VB.NET 2003. One of them has several controls on it, including at the bottom of the page an IFrame. The second ASP.NET page is supposed to have...
11
by: Wayne Cressman | last post by:
I'm writing a function to dynamically change a form validation script depending upon the user's choices. The form onsubmit is: onsubmit="writevalidate(this.select.value);return...
0
by: Brian Tkatch | last post by:
Trying VB .NET. CREATE PROCEDURE A(A INTEGER, OUT B CHAR(1)) BEGIN SET B = 'C'; END In VB, opened a standard form, associated the .NET dll, in the code added Imports IBM.Data.DB2, and added...
1
by: =?Utf-8?B?UGF0cmljaw==?= | last post by:
Hi, Is it possible to change the parameters of a printer with VB ? My printer can print on both sides and I would like to change the parameters to print on both sides according to criteria but...
0
by: mallz | last post by:
hi, im my jsp im dividing my page into 3 divisions, using div tag.basically im using tabs. so, on click of each tab, i want to store its id in a variable, because i need to use it later. how can i...
3
by: mson77 | last post by:
Hello ALL, This is my first message in this Forum. Regarding this title: CBO initial parameters - When, What, How to setup them. I have already read oracle documentation which explain the...
1
by: dvaddi | last post by:
Hello, we have linux , mysql 5.0 with php scripts. Yestarday evening we changed the parameters in worker MPM to 100 from the default 256 and increased the key_buffer_size to 48M from 8M. ...
5
by: Tony | last post by:
Hi all, Do you know how to change kernel parameters on Solaris 10 for DB2? I just installed DB2 ESE v8.2 on a new Solaris 10 box. But during the installation, it asks for changing the kernel...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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,...

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.