All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.codename1.impl.javase.cef.binding_test2.html Maven / Gradle / Ivy

There is a newer version: 7.0.167
Show newest version


Binding Test - Part 2





JavaScript Binding Test - Part 2

While this page was loaded, the JavaScript function

window.cefRequest(request: 'hasExtension')
was executed for enabling/disabling the buttons below.
 
If you press "Enable myQuery", the JavaScript function
window.cefRequest(request: 'enableExt')
is executed. This causes Java to create a second instance of
CefMessageRouter
In this case the name of the JavaScript query function is set to "myQuery" and
a handler for the request 'jcefJava' is registered. Pressing the "Test"
button will execute the JavaScript code
window.myRequest(request: 'jcefJava')
which returns your current Java version on success or an error message in case
of an error.

Please note: If you leave this page (myQuery enabled) and you return
after a while - without closing the browser - the JavaScript binding is
still enabled.

Second message router:




© 2015 - 2025 Weber Informatics LLC | Privacy Policy