What is all this fuss about?
JavaScript Executable (aka JavaScript Exe) is a small, lightweight, cross-platform program, that reveals the full potential of the desktop
JavaScript.
So what?
As developers like to say. Code talks.
Lets develop a full-fledged desktop program in 10 lines of code.
What should we do in 10 lines:
- create a frame, specify a title to be shown, and open it
- set an advanced layout, leaving 20px from the borders, and 10px betwen the buttons
- create two buttons, and specify text to be shown
- create two functions, one to change frame title, and one to make an alert window
- and finally, attach the functions to the buttons
Impossible?
Look further:
var btnTitleChange = $.button("Let's change Frame title").on_click(changeTitle,"Wow, I changed!");
var frame = $.frame("Demo Application")
.layout($.layout("table",[[20,-1,20],[20,40,10,-1,20]]))
.add($.button("About").on_click(alert),"1,1")
.add(btnTitleChange,"1,3");
frame.show();
function changeTitle(title){frame.title(title);}
function alert(){js.alert("Welcome to JavaScript executable!");};
Lets see the result?
What is more?
And what is even more is that JavaScript Executable can easily work in your browser. See the example bellow.
|