Answer the question
In order to leave comments, you need to log in
How to bridge between java and javascript?
Hello, I am writing a javafx application in which I receive data from the server and send it to a webView
webView.getEngine().getLoadWorker().stateProperty().addListener((observable, oldValue, newValue) -> {
if (newValue == Worker.State.SUCCEEDED) {
JSObject jsObject = (JSObject)webView.getEngine().executeScript("window");
jsObject.call("initialize", jsonArray);
}
});
<select id="cat_select" onchange="changeEventHandlerCatWidget(event);">
<option value="0">Все</option>
<option value="1">продукты</option>
<option value="2">изделия</option>
</select>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question