how to call java function when javascript button clicked? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to call java function when javascript button clicked?

I have a function in java that updates my json file and database. how do I call that function when a javascript button is clicked?

6th May 2021, 3:08 AM
Xixi
3 Answers
- 1
Xixi There is no function in Java. In Java, function is known as Method. You can use JSON or Ajax to send data from client side to server side and call your Java method and insert data in database.
6th May 2021, 9:42 AM
A͢J
A͢J - avatar
- 4
It will be that you can help me with my codes I am a beginner
6th May 2021, 4:04 AM
Jesus Gael Gonzalez Martínez
Jesus Gael Gonzalez Martínez - avatar
- 4
POST method to PHP with HTML / JAVASCRIPT Form ready
6th May 2021, 4:05 AM
Jesus Gael Gonzalez Martínez
Jesus Gael Gonzalez Martínez - avatar