theListId: Specifies the id of the list element.
theListIdparameter. Typcially a
selects are set to their first option. The values of all other inputs are set to the empty string. Automatically populated by
0to work with lists without alternating classes. Defaults to
'alternate'. Note: construct all alternating lists such that the first and all subsequent odd items are assigned the alternate class.
'#'specifying the background color of the regular (non-alternate) list items.
'#'specifying the background color of the alternate list items.
The "scope" of these methods may change in the future.
ajaxAdder(string what, string where)
whatfrom the data contained in the input elements that are descendents of the HTML element with id equal to
where. The new item(s) are then added to the list. The
addCompletefunction will be run after all the items have been added and before the list is recolored. Items being added to the list that already exist in the list will be moved from their initial position to the beginning or end of the list (depending on
topAdder. Returns false on success (to block traditional form submission), true on failure.
ajaxUpdater(string what, string where)
ajaxAdder. Tthis function is specifically designed to edit an item's data rather than create a new item. Returns false on success, true on failure.
ajaxDelete(string what, string id)
whatand with element id
what-id, then removes that item from the list. The
delCompletefunction will be run after all the item has been deleted and removed, and before the list is recolored. Returns false on success, true on failure.
ajaxDimmer(string what, string id, string dimClass)
dimClass. Again, the item is of type
whatand has element id
dimCompletefunction will be run after all the item has been dimmed. Returns false on success, true on failure.
rawHTMLinto an HTML element appropriate for insertion into the list.
addListItem(string rawHTML, int totalNumber)
rawHTMLto the list. The
totalNumberparameter specifies how many items are being added "at once" in this set.
removeListItem(string id, bool noFade)
idfrom red and then deletes it. If
noFode==true, the item is simply deleted without fading.
replaceListItem(string id, string rawHTML)
rawHTML. Also used internally to first remove and then replace an item.
dimItem(string id, string dimClass, bool noFade)
dimClassof the list item identified by
idand fades from yellow.
grabInputs( string container)
container(specified by an id). Looks only for
selectform elements. Also populates
clearInputswith the ids of all of these elements excluding
deleteSomething(what, id, string message)
theList.ajaxDeletethat also asks the user to confirm the deletion by responding to
dimSomething(what, id, dimClass)
killSubmit(string code, event e)
code. If the JS evaluates to
falsethe form is not submitted. Should be bound to elements' onkeypress or onclick event handlers.
getNodeValue(DOM Object tree, string tagName)
tagNamethat is a descendant of
encloseFunc(function func, [mixed arg])
funcoptionally evaluated at