Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / February 2005

Tip: Looking for answers? Try searching our database.

applets and html Forms

Thread view: 
dhl84 - 24 Feb 2005 11:13 GMT
hello,
i'm trying to get some parameters from an html Form (radio buttons) to use
in my java applet class. I need these parameters to call some methods of a
java class in the applet one to update an animation. Do you know how i can
obtain them?
Thanks for your help.
Dag Sunde - 24 Feb 2005 19:35 GMT
> hello,
> i'm trying to get some parameters from an html Form (radio buttons) to use
> in my java applet class. I need these parameters to call some methods of a
> java class in the applet one to update an animation. Do you know how i can
> obtain them?
> Thanks for your help.

Set them from Javascript (into the Applet) instead of trying to
read them in your applet...

In Your applet, create the neccessary  public setter methods for
the parameters your applet need, and in JavaScript on the page,
call the applets setter methods.

To access your applet from js, you must give your applet
(or object) tag an id, and set the tag's "mayScript" attribute.
Then you can call it from JS like this (aircode):

   var myApplet = document.getElementById("myAppletId");
   myApplet.setValue1 = aOneValue;
   myApplet.setValue2 = aSecondValue;

Signature

Dag.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.