FAQ Database Discussion Community


DukeScript: how to access the Java model from the JavaScript context?

knockout.js,dukescript
This is related to 1 and 2. I've read the excellent documentation "Using the Knockout API". That explains how the context is set of a specific widget with knockout bindings. Now I'd like to be able to access Java models from the Firebug command line, as I would normally do...

How to debug JavaScript in DukeScript

firebug-lite,dukescript
Is it possible to debug JavaScript when using DukeScript? I've tried adding FirebugLite <script type='text/javascript' src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script> It loads and that's awesome but it has no visibility of the $root model. Also I don't know if it's possible to add breakpoints....

How to reload a page in DukeScript

javafx-webengine,dukescript
DukeScript is quite clever in the way it handle changes to the Model so that code is hot-swapped at runtime, see for example here. One thing it doesn't seem to handle at Runtime though is changes to the HTML layout. Given it runs in a WebView, a kind of a...

DukeScript: How do native calls into JavaScript work?

knockout.js,dukescript
I'm struggling to understand how "native method" calls in DukeScript work. In particular, the ones where no body is specified in the @JavascriptBody annotation. For example: @JavaScriptResource(value = "userEntryComponent.js") public final class UserEntryWidget { private UserEntryWidget() { } @JavaScriptBody(args = {}, body = "") public static native void registerComponent(); }...

Can we use Dukescript as an applet replacement?

java,javascript,dukescript
I read that DukeScript, a technology meant to bring Java to every client without the need of a plug-in. Can this technology used as an applet replacement?...