JavaScript for desktop and web apps

JavaScript is now a server side language too and allows to make applications running locally or online with Web's standards.

High-level JavaScript

JavaScript goal-oriented
It is easier to manage objects operating simultaneously with the concept of goals.

True reactive programming in JavaScript
Simple implementation of this paradigm, which brings a new level of ease in programming.

Node.js tutorials

Using JavaScript at command line with the V8 compiler
JavaScript may be used as a scripting language on the local desktop.

Node.js, first steps
Description of features of this JavaScript server, and why it is important for developers.

A system for making online or offline applications
The Node.js environment is essentially made of five components, here a list of software you can choose to these components.

How to build a page and application server script
Second step in the study of Node.js, how to make a basic server.

Convert XML into JavaScript object
Script with also a function to access an item by ID and save an object in an XML file.

Running locally a PHP program from the browser
Node.js connects the browser to executable files on a local machine. So a HTML page can launch a local script.

HTML 5 as an interface to a local script, with Node.js
How to pass data to a script running on the local desktop once entered in a HTML form. These data become parameters to the script and results are send to the browser as a web page.

First steps with WebSocket and Node.js
Creating an interaction between a server and a HTML page, online or locally, is very easy with

PHP script used locally, with HTML 5 interface  thanks to WebSocket
This demonstration provides the additional possibility for a local script after receiving data from the HTML interface to send the results to the same interface, which can then process and display them.

A readLine function to Node.js
File System module has a flaw: you can not read a text file line by line. Here is a simple function to complete this module.


JavaScript.Ini: Configuration file manager
This script generates an HTML user interface from a JSON configuration file for a local (with Node.js) or online application. It also allows you to update the file based on the options selected by the user. A full demo is provided for download.

The simplest autocomplete code
With no framework, no regular expression.

Loading a JavaScript file into another with Node.js
Three methods are proposed to include a JS file, two with functions provided by Node.js.

How to highlight the current page in a list
Showing in a summary included on several pages which link corresponds to the current page.

Difference between two dates
In years or day. Age of a person.

How to make JavaScript links
You can add unlimited links in a page without the risk to look like a link farm to search engines if links are visible to users but not to the engines ...


Why to replace PHP by JavaScript on the server?
What does JavaScript offers that PHP does not have?

Part two: A CMS in JavaScript on the server. With the example of Ghost.

Online tool

Compatibility test of new features
Since ECMAScript 1.6 and even more Harmony, JavaScript has new capabilities. But what browsers support them? The test page can check it directly.