Code Library

Overview

The code library is a repository of javascript script libraries that can be imported into your desktop or page and used in your own code. Scripts are written and posted by members of the community

Code Editor

LIbrary scripts are edited using the code editor. To create a new script, click the code submission button. This will bring you to the code editor. It consists of

Editing Posted Scripts

When you post a script to the library, you can select whether the post represents a final submission that cannot be further edited, and if you allow it to be edited, who can edit the script. The Locked drop down box lets you select which option applies.


Locking a script is useful because it indicates to users of the script that the script will not change and they can depend on the stability of the script.

If the script is editable, you will see an edit link underneath the script link in the library.
Clicking on the edit link will open the script in the code editor, from which you can make changes and submit.

API

The API is an object that describes the library. It is pasted into the API textarea as text. The View API tab will pretty print the text as a object tree, as below. The following represents a sample API object.

Attachments