Over the past few weeks, we've posted two articles describing how applets written in the JavaFX Script programming language can interact with JavaScript code in the pages that contain them.
The first article , written by Sun engineer Ken Russell, describes this JavaFX Script - JavaScript bridge. It covers the technical details of calling from JavaScript into JavaFX Script and vice versa. In this article you will learn how to set variables, invoke functions, descend into the scene graph, show documents in a web browser, and more.
The second article, written by Sun technical writer Scott Hommel, renders a set of 2D dice, with values that are set by the containing JavaScript. This short tutorial walks the user through the application development process, covering additional considerations
to make when using the javafxpackager tool.
From Ken's first article: *Note: this functionality requires Java SE 6 Update 10 at minimum*
In a nutshell this means that the Javascript bridge only works for Windows.
Mac OS X does not have update 10 and Linux is not supported.
Have I got this right? If so then are there any work-arounds for Mac OS X so that I can have JS communicate with JavaFX?
Posted by Christopher Hunt on May 20, 2009 at 04:32 AM PDT #
GOOD post ,It's useful,I like it.
Posted by abercrobmie and fitch on November 27, 2009 at 10:05 PM PST #