Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
A
 Ajax Tree
 Ajax.Tree
 Ajax. Tree.Base
C
 callback, Ajax. Tree.Base
 className, Ajax.Tree
 constructor, Ajax. Tree.Base
 create, Ajax.Tree
D
 DOM Elements, Ajax. Tree.Base
 draggable, Ajax.Tree
E
 Example
F
 Flags, Ajax. Tree.Base
 Functions
H
 Handling Server Requests
 Hooks, Ajax. Tree.Base
I
 insertion
L
 leafNode, Ajax.Tree
O
 onClearContents, Ajax. Tree.Base
 onClick, Ajax. Tree.Base
 onContentLoaded, Ajax. Tree.Base
 onDispose, Ajax. Tree.Base
 onGetContents, Ajax. Tree.Base
 onGetContentsComplete, Ajax. Tree.Base
 Options
P
 page, Ajax.Tree
 prependParentId, Ajax.Tree
 Properties, Ajax. Tree.Base
S
 Server Response
 showError, Ajax.Tree
 Specifications
U
 Usage
 Using the Javascript
Created by Colin Mollenhour
Ajax.Tree is the utility class for Ajax.Tree.Base.
Ajax.Tree.Base is designed to be extended using Ajax.Tree.create.
Called to build query parameters for the Ajax.Request.
className: type
The className for the newly created element div and span elements, defaults to the node type
create: function(structure)
Returns a constructor for a new class that is specific to the structure passed.
The DOM elements created on instantiation of a new node.
draggable: false
Not yet implimented.
All flags listed here are accessed by this.<flag> and initialized to the values on the left.
Hooks are provided for fine control over interactivity.
insertion: Element.update
The insertion function used to handle the node “data”.
Called by the constructor after the basic node element has been built.
leafNode: false
If true, the mark will get the className ‘leaf’ and clicks will not fire a toggleChildren.
Called after a node’s children have been cleared.
Called on user clicking the mark.
Called after all new nodes have been constructed.
Called after a node has been disposed.
Called immediately after the Ajax.Request is sent.
Called after the Ajax.Request onComplete
All options are unique per type, and can be accessed inside class functions by “this.options.<option>”.
See Ajax.Tree.Options
page: null
If specified, getContents will be called on clicking the mark.
prependParentId: false
If true, the new element id will be prepended with it’s parent’s id.
All properties are accessed by this.<property>.
The server response is expected to be in JSON format.
showError: function(message)
Displays an error message.
Usage specifications and examples.
Use Ajax.Tree.create to create a customized tree class.
Use this class as the base for your own customized Ajax.Tree class.