Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
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.
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • 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
 
Rancher
Posts: 43016
76
  • 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.
 
Master Rancher
Posts: 3882
35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a program I got from another forum years ago:
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic