Thursday Mar 12, 2009

JavaFX and Ajax

Ken Russell, the architect and author of the new Java Browser plugin has recently completed the work on the JavaFX to JavaScript bridge. In a nusshell, JavaFX web applications could call JavaScript functions & objects in the webpage that embeds the JavaFX app and vice versa. Nota bene: this bridge calls for the plugin to use Java SE 6 update 10 or later.

JavaScript to JavaFX Script

JavaFX Script can be accessed using the synthetic script field which is exposed from JavaFX Script applets to the JavaScript engine.

function someJavaScriptCall() {

var myApp = document.getElementById("myApplet";);

myApp.script.someJavaFXScriptCall();

}

The snippet above, assumes that the Java web application (Applet) embedded in the web page is instantiated with myApplet as id.

JavaScript to JavaFX Script

JavaFX Script can interact with JavaScript on the web page, in a similar way to how Java code can interact with JavaScript. This lets you call JavaScript functions defined on the web page, modify the Document Object Model (DOM) of the web page on the fly, and generally write JavaFX Script apps that integrate well within the web page.

AppletStageExtension.eval("yourJavaScriptCall()";);

Monday Mar 24, 2008

Share your technology expertise with others

Blogs are all about sharing, opinion and participation in the new social media dynamic, where the news are made by random folks, and not only the journalism graduates.
The NetBeans blogging contest is just that - an attempt to get folks to evaluate the latest support for JavaScript and the Spring framework, that comes in the NetBeans 6.1 beta. If you are adventurous, try the NetBeans 6.1 nightly build, where you can get a preview of the new design for RESTful web services support and PHP. It is still work in progress, but worth while for the folks looking for the bleeding edge.

Saturday Feb 23, 2008

Help NetBeans make a 'clear case' :-)

The NetBeans team just released support for one of the most  popular version control systems (VCS) in the  enterprise - ClearCase. At this point the ClearCase plugin is only available in the current development version of NetBeans: 6.1. Since the support is still experimental, the plugin is available on the update center. In order to try this out, one would have to get a NetBeans dev build.

The details regarding the support for ClearCase can be found here. Rouman blog has even more details.

In my case, I gave NetBeans 6.1 a try for a completely different reason. It is the improved support  for JavaScript. In the previous versions of NetBeans, JavaScript was minimally supported.  Starting last week, I've noticed dramatic improvement. I'll keep a close watch on that and report back.

About

octav

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today