• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

passing parameters to applet dynamically

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I need to develop an applet that generates a Bar graph by getting values from a spreadsheet that a user enters.
The spreadsheet is an HTML file with some JavaScript.
How do I get the values from the spreadsheet and pass it to the applet class in order to generate thr bar graph?
thanks.
 
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ritu,
You would use JavaScript to create the HTML file that used the PARAM HTML tag to send in the values to your applet.
Then your applet would use the getParameter method inside its' init method.
FOr example:
HTML CODE:
< APPLET CODE="Ex" WIDTH=200 HEIGHT=100 >
< PARAM NAME="Value1" VALUE="35" >
< /APPLET >
Applet Code:

Regards,
Manfred.
 
ritu mahajan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Manfred Leonhardt:
Hi Ritu,
You would use JavaScript to create the HTML file that used the PARAM HTML tag to send in the values to your applet.
Then your applet would use the getParameter method inside its' init method.
FOr example:
HTML CODE:
< APPLET CODE="Ex" WIDTH=200 HEIGHT=100 >
< PARAM NAME="Value1" VALUE="35" >
< /APPLET >
Applet Code:

Regards,
Manfred.

 
ritu mahajan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Manfred Leonhardt:
Hi Ritu,
You would use JavaScript to create the HTML file that used the PARAM HTML tag to send in the values to your applet.
Then your applet would use the getParameter method inside its' init method.
FOr example:
HTML CODE:
< APPLET CODE="Ex" WIDTH=200 HEIGHT=100 >
< PARAM NAME="Value1" VALUE="35" >
< /APPLET >
Applet Code:

Regards,
Manfred.


Thanks Manfred.
I'll try that.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic