+ 3
Execute Java Codes On My Website
Please is there a way to take data from textbox and radio of my website and use normal Java syntax to handle what is displayed as a result on my website?
4 ответов
+ 7
You're welcome ^^
+ 6
You could use a Java applet... But as the applets will be deprecated in Java 9, I'd like to recommend JavaScript instead of Java.
+ 3
Thanks
0
You mean running Java in JavaScript
If that's what you mean, I actually managed to do some of these things
JavaScript cannot do things like vibrate the phone
But I managed to add this to javascript
Prompt actually has 2 buttons, I added a third button to it
I have somewhat succeeded in connecting javascript to java
But if you find a function that converts the string into Java code and executes it
This connection can be completed
In fact, for this you need to work with Java and Android programming
And you should be familiar with webview, web chrome client and onJsPrompt
Because they actually do the whole job of connecting to Java
JavaScript sends requests to Java through a prompt
Java must check whether a code should be executed or a dialog should be displayed
You can set for prompt or confrim or alert or console.log