> 12/12/2007 : JsLib v1.4 is available |
||
Presentation - Documentation - Installation - Usage - Download | ||
If you are searching for JSLib, the library of Mozilla community, please visit: http://jslib.mozdev.org/ |
PresentationJsLib is a French-written library of JavaScript functions. Its goal is to make easier the task of the developer in two manners:
JsLib functions are gathered according to their application in several files. The current version of JsLib is version 1.4. |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DocumentationRead directly the index of the documentation... ... or look at the documentation and the examples of the JsLib scripts which interest you:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InstallationTo install JsLib on your computer, you just have to uncompress the file (jslib14.zip or jslib14.tar.gz) in the directory of your choice. Three sub-directories are then created:
If you choose to use JsLib to develop a Web site, copy the scripts/ directory in the root directory of your site. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
UsageThe best way to understand the operating mode of JsLib is the following one:
As an example, here is the HTML code of a Web page which simply displays the current date: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<HTML> <HEAD> <TITLE>Date du jour</TITLE> <!-- includes the JsLib file --> <SCRIPT LANGUAGE="JavaScript" SRC="date.js"></SCRIPT> </HEAD> <BODY> <!-- call the wanted JavaScript function --> <SCRIPT LANGUAGE="JavaScript"> document.write(dateJour()); </SCRIPT> </BODY> </HTML> This page runs in any JavaScript/ECMAScript compliant browser, on the
condition of copying the file date.js in the same directory as the page. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DownloadDownload the file in ZIP or TAR/GZIP format then use the adequate command or tool to extract the files from it.
Mistakes, criticism, improvements, questions: all the comments are welcome.
Write to the author to this e-mail address:
|
|
Top of the page | ||
Presentation
- Documentation
- Installation
- Usage
- Download
|
||
Last updated on
12/12/2007
|