Skip to content

Commit

Permalink
updated the readme with better links
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed May 24, 2012
1 parent cb6a65e commit 52e17ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions koolapp-javafx/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ Here's a breakdown of the source code used to implement this:

* [test.koolapp.myapp.MyApp.kt](https://github.com/koolapp/koolapp/blob/master/koolapp-javafx/src/test/kotlin/test/koolapp/myapp/MyApp.kt) the actual application which interacts with the DOM using the standard [kotlin.browser](http://jetbrains.github.com/kotlin/versions/snapshot/apidocs/kotlin/browser/package-summary.html) package.
* [org.koolapp.javafx.WebApplication](https://github.com/koolapp/koolapp/tree/master/koolapp-javafx/src/main/kotlin/org/koolapp/javafx/WebApplication.kt) : standard KoolApp browser Application
* [org.koolapp.javafx.namespace](https://github.com/koolapp/koolapp/tree/master/koolapp-javafx/src/main/kotlin/org/koolapp/javafx/) : Java main() function launcher for the JavaFX web app
* [org.koolapp.javafx.namespace](https://github.com/koolapp/koolapp/tree/master/koolapp-javafx/src/main/kotlin/org/koolapp/javafx/Main.kt) : Java main() function launcher for the JavaFX web app

The application code - the [myapp() function](https://github.com/koolapp/koolapp/blob/master/koolapp-javafx/src/test/kotlin/test/koolapp/myapp/MyApp.kt) should be usable when compiled to JavaScript directly. The code in the org.koolapp.javafx package is only required if you want to run the application on a JVM with JavaFX.

### How a KoolApp JavaFX application works

When using your web application in the KoolApp JavaFX browser, you need to bind your Kotlin application code to the web page. This is done by adding a script tag (or using the WebApplication.ready() function to pass a block when the document is ready).
When using your web application in the KoolApp JavaFX browser, you need to bind your Kotlin application code to the web page. This is done by adding a [text/kotlin script tag](https://github.com/koolapp/koolapp/blob/master/koolapp-javafx/src/test/resources/sample.html#L6) or using the WebApplication.ready() function to pass a block when the document is ready.

For example if you add this to a HTML file:

Expand Down

0 comments on commit 52e17ba

Please sign in to comment.