• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 761
  • Last Modified:

Calling a java class using on onclick event in javascript

Hello All:

I would like to call a java class using on onclick event in JavaScript?


How is this possible please provide code and I am new developer
0
CalmSoul
Asked:
CalmSoul
  • 6
  • 5
  • 2
2 Solutions
 
objectsCommented:
you can only call an applet from javascript as it runds on the clients side

http://www.rgagnon.com/javadetails/java-0170.html
0
 
CalmSoulAuthor Commented:
I am sure this can be done without applet?
0
 
objectsCommented:
what is the java class you want to run
and where is it located?

0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
CalmSoulAuthor Commented:
Here is the java I would like to run on button click


DSUpload.java.txt
0
 
objectsCommented:
you'll need to make it an applet, and the applet will need to be signed.

0
 
CalmSoulAuthor Commented:
How do I pass arguments from applet to this java file?

I would like to pass to argument/parameters
0
 
objectsCommented:
if you want to leave that code as is then call its main

DSUpload.main(args);

where args is a string array containing the arguments you want to pass


0
 
CalmSoulAuthor Commented:
Can I make a form in applet and then pass the text box values to the *.java
0
 
objectsCommented:
sure

0
 
CalmSoulAuthor Commented:
fsze88:

I am gettting error opening your link
0
 
fsze88Commented:
?? I tested on IE6, fine
0
 
CalmSoulAuthor Commented:
Ohh I am using firefox
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 6
  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now