Hi guys,
I just love CN1 and am playing around with the Java/Javascript interoperability in the BrowserComponent.
The problem I have is that the working code has deprecated classes and I cannot find a good example of how to do it without using deprecated code.
Currently this works :
JavascriptContext ctx = new JavascriptContext(browser);
JSObject test = (JSObject) ctx.get("window");
test.set("call", new JSFunction() {
public void apply(JSObject self, Object[] args) {
String msg = (String) args[0];
System.out.println("window.call was executes");
}
});
Deprecated classes: JavascriptContext,JSObject
Please give me a hint on how to NOT use the deprecated Classes to call Java from Javascript.