JavaScript o Lait documentation

Version 1.0
October 2004

Tutorial

This is a good starting point if you have not worked with jsolait before.

Modules

jsolait

The main module containing the basic jsolait functionality.

codecs

Provides String encoding and decoding functionalities.

crypto

Provides cryptographic services.

jsonrpc

An implementation of the JSON-RPC protocoll.

lang

Provides language services. E.g. a JavaScript tokenizer.

stringformat

This module is automatically loaded with the main module. It provides some powerful string formatting.

urllib

Provides methods to make HTTP requests.

xml

Provides XML services.

xmlrpc

An implementation of the XML-RPC protocoll.

Usage/Installation

JavaScript o lait was designed to be used in web pages(HTML/SVG) but is not limited to it. The simplest way to use it is to copy the jsolait folder to your project directory and include the main file into the web page by reference.
In HTML use the script element:
<script type="text/javascript" src="./jsolait/init.js"></script>
In SVG it is similar:
<script type="text/ecmascript" xlink:href="./jsolait/init.js"/>

You can also use jsolait with WScript by running the init.js script and pass the script to be executed as a command line argument:
cscript.exe /nologo "c:\path_to_jsolait_folder\init.js" "file://path_to_script\your_script.js"

See jsolait module documentation for customization and requirements.