Re: using a button on a webpage to execute a java class
Posted By:
Matan_Amir
Posted On:
Tuesday, June 10, 2003 02:51 AM
One way to do it would be to create a Java Applet around your class. It can even be a hidden applet that has no user interface. Create a public function that does the functionality you want (basically like your main method)...and embed the applet in your html page. Through javascript (make an html button that calls the javascript with the onclick event) you'll be able to access the applet and call your function.
That is one solution. I left out the exact details but feel free to ask if you have any specific questions on one of the steps.
Hope that helps,
Matan