Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to pass a value from an applet to a html field

 
Jay Richards
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a table row displayed on an applet,
when a particular row is selected then a button was pressed,
i need to put that value on an html field.

please point me good examples and resources.

practical example will be highly appreciated.

thanks guys in advance.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is something that's very easy to do in JavaScript, but next to impossible from a Java applet. You need to reexamine your requirements -- we could help if you explain what you need to accomplish.
 
Jay Richards
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yah i know, its just that the applet will be a search window, wherein you can sort by column and filter by values. then when he select a row and click a use button, that value will go to a html field, w/c will be used when he submit the form.

i heard of using javascript objects to access browser objects, but i'm lost where to start or what do i really have to use.

can you help me out? thx
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JavaScript <--> Applet connection is called LiveConnect, and can be used in both directions. However, not all browsers support it, and the version of the JVM used may be a factor too. Googling for "LiveConnect" will give some starting points.
 
Norm Radder
Bartender
Posts: 1526
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a program I got from another forum years ago:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic