I want to fire a B4J event when the text of some html element changes. I need to add a new EventListener but I don't know how to do this.
I found this code from the javafx doc:
Could someone convert this to B4J code?
I also found this thread: https://www.b4x.com/android/forum/t...king-a-button-inside-a-webview.98427/#content , but I don't know how to use this for elements other than button.
I found this code from the javafx doc:
Java:
EventListener listener = new EventListener() {
public void handleEvent(Event ev) {
Platform.exit();
}
};
Document doc = webEngine.getDocument();
Element el = doc.getElementById("exit-app");
((EventTarget) el).addEventListener("click", listener, false);
Could someone convert this to B4J code?
I also found this thread: https://www.b4x.com/android/forum/t...king-a-button-inside-a-webview.98427/#content , but I don't know how to use this for elements other than button.