/    Sign up×
Community /Pin to ProfileBookmark

Using a FORM to change A PARAM VALUE inside an Applet

With the use of a FORM (Columns=”Any Number”, Rows=”Any Number”) , I want to be able to change from the HTML screen the following PARAM values:

<PARAM NAME=”hnum” VALUE=”4″><PARAM NAME=”vnum” VALUE=”4″>

These PARAMS control the number of COLUMNS (“hnum”) and ROWS (“vnum”) for a Slide Puzzle—[A Free JavaScript at [url]http://javaboutique.internet.com/slidepuzzle[/url]]

They are inside the

<APPLET CODE=”SlidePuzzle.class” WIDTH=”550″ HEIGHT=”400″ ALIGN=”MIDDLE”>
<PARAM NAME=”image” VALUE=”mypic.jpg”>
<PARAM NAME=”hnum” VALUE=”4″>
<PARAM NAME=”vnum” VALUE=”4″>
<PARAM NAME=”backgroundcolor” VALUE=”006600″>
<PARAM NAME=”soundfile” VALUE=”default.au”>
<PARAM NAME=”pieceshaveborders” VALUE=”true”>
<PARAM NAME=”enablescrolling” VALUE=”true”>
<PARAM NAME=”pieceshavebuttoneffect” VALUE=”true”>
<PARAM NAME=”alwayssolvable” VALUE=”true”>
<PARAM NAME=”scrollingtime” VALUE=”300″>
<PARAM NAME=”solvethepuzzletext” VALUE=”Solve it!”>
<PARAM NAME=”imagestillloadingtext” VALUE=”Image is still loading…”>
<PARAM NAME=”userhaswontext” VALUE=”You win!”>
<PARAM NAME=”timetext” VALUE=”Time (seconds): “>
<PARAM NAME=”movestext” VALUE=”Move: “>
<PARAM NAME=”scrambletext” VALUE=”Scramble!”>
The puzzle-applet: use a java browser
</APPLET>

Thanks in Advance,

Lucien

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliSep 05.2003 — I don't think that will work.Because param values are read by the applet at the load time.And if you change them after its loaded,I doubt that its going to do what you are expecting.

What you will need to is create some

setter methods in applet and then once you call those setter methods,redraw the applet with the new params.
×

Success!

Help @Lucien spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...