Forums Register Login

passing parameters to applet dynamically

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

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.

 
+Pie Number of slices to send: Send
 

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.
It's exactly the same and completely different as this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1997 times.
Similar Threads
Print an Applet with charts from Netscape
fluctuation
Applet Serialization
Creating Charts in Applets using Data from Database
Urgent
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:29:11.