English (en-ca) 2004-12-18 $id: $ Doc_Builder DM Solutions Group Inc. chameleon@lists.maptools.org Christopher R. Thorne DM Solutions Group Inc. chameleon@lists.maptools.org jstreeview TBD TBD 1.99 1999-12-31 BETA Paul Spencer DM Solutions Group Inc. chameleon@lists.maptools.org The Javascript TreeView displays a client side tree view of the data in a Shared Resource Widget that has the JSEnabled attribute set to true. JSSHAREDRESOURCE ="[string]" NODEONCLICK ="[string]" NODEDATAFIELD ="[string]" NODELABELFIELD ="[string]" NODEICONFIELD ="[string]" NODEICONOPENFIELD ="[string]" NODECLASS ="[string]" NODESELECTEDSTYLE ="[string]" NODENORMALSTYLE ="[string]" LEAFONCLICK ="[string]" LEAFLABELFIELD ="[string]" LEAFICONFIELD ="[string]" LEAFDATAFIELD ="[string]" LINKCLASS ="[string]" Hawaii Demo http://www.mapsherpa.com/hawaii2/ The Hawaii Demo uses the latest 1.99 Chameleon version. base JSSHAREDRESOURCE string Required The name of a javascript-enabled SharedResource to draw values from. NODEONCLICK string Widget Only The name of a javascript function to call when the user clicks on a branch. This must be the name only. The callback is called with NODEDATAFIELD string Widget Only The name of the property to get from the SharedResources as the data associated with a branch on the tree. NODELABELFIELD string Widget Only The name of the property to get from the SharedResources as the data associated with a branch on the tree. NODEICONFIELD string Widget Only The name of the property to get from the SharedResources as the image to be displayed for a branch on the tree when it is closed NODEICONOPENFIELD string Widget Only The name of the property to get from the SharedResources to display as a label on for a branch on the tree when it is open. If not provided, the closed icon will be used. NODECLASS string Widget Only The CSS class name to use for text displayed in the tree. This is applied to a <SPAN> tag that is wrapped around all labels displayed in the tree. NODESELECTEDSTYLE string Widget Only CSS styles to be applied to a label in the tree when it has been selected. This should be zero or more CSS styles. Note that these styles override the associated class NODECLASS settings and cannot be removed without using NODENORMALSTYLE. NODENORMALSTYLE string Widget Only CSS styles to be applied to a label in the tree after it was selected and then another item was selected. This should be zero or more CSS styles that essentially reverse the NODESELECTEDSTYLE. LEAFONCLICK string Widget Only The name of a javascript function to call when the user clicks on a leaf. This must be the name only. The callback is called with the value from the LEAFDATAFIELD property of the SharedResource. LEAFLABELFIELD string Widget Only The name of the property to get from the SharedResources to display as a label on for a leaf on the tree. LEAFICONFIELD string Widget Only The name of the property to get from the SharedResources as the image to be displayed for a leaf on the tree. LEAFDATAFIELD string Widget Only The name of the property to get from the SharedResources as the data associated with a leaf on the tree. LINKCLASS string Widget Only The CSS class name to use for links in the tree. Links are <A> tags inside of the <SPAN> that wraps all labels in the tree. XML Child Element to Chameleon widget tag (subtag) Widget & Shared Resource float Widget & Shared Resource sid unknown foldersTree string Private HIGHLIGHT float Private 1 Set to control the javascript treemenu. ICONPATH string Private http://localhost/_cvsdev/chameleon/htdocs//skins/default/images/ Set to control the javascript treemenu. USETEXTLINKS float Private 1 Set to control the javascript treemenu. USEFRAMES float Private 0 Set to control the javascript treemenu. STARTALLOPEN float Private 0 Set to control the javascript treemenu. PRESERVESTATE float Private 0 Set to control the javascript treemenu. JSTreeViewImage float Private new Image() A global javascript Image object to use for pre-loading tree images. NODECLASS string Private treeItem Set to control the javascript treemenu. LINKCLASS string Private treeLink Set to control the javascript treemenu. NODESELECTEDSTYLE string Private border-width:1px;border-color:#b2c4c4;font-weight:bold:background-color:#e3f0f0 Set to control the javascript treemenu. NODENORMALSTYLE string Private border-width:1px;border-color:#ffffff;font-weight:normal:background-color:#ffffff Set to control the javascript treemenu. string Private Private string false unknown JSAPI function calls for this widget are outlined here. string false PHP Mapscript none Error message string.... The description of what the message means...... Any possible solution that will help application developers troubleshoot and fix the problem.