I need an ASP function in VBScript to produce a navigable 'tree' (client side) within IE5.0 or higher.
It should be written in VBScript to generate standard DHTML client-side. Re-freshing of the page will not be accepted.
Population of the tree will be via passed arrays containing the information.
1) Complete and fully-functional ASP Code with sample Page to demonstrate functionality.
2) Full Documentation of all sub-functions and key structures of the code.
3) Exclusive and complete copyrights to all work purchased.
4) NO USE of third party tools, ActiveX or DLL's - Pure ASP VBScript only.
Design of code should be as follows:-
The objPath would be a String of 1 to 30 characters and the tree would be arranged based on this path; i.e.
In this scenario 01112 is the child of 011 which is the child of 01 which is the child of 0. 0231 is the child of 023 which is (along with 024) the children of 02 which of course is the child of 0
(I can't show it expanded here as the forum reformats this message, but hopefully you get the idea)
The tree of course would not show the 'objPath' value, but replace it with the icon (as passed in the array), and show a +/- expand/hide icon next to each branch.
As the mouse moves over a row, it's class should be changed according to the passed parameter (in order to highlight the row by changing th background colour)
The expansion/hide MUST be handled client-side as the initial retrival of data would take some time (it will be queried from a SQL server prior to placing in the array)
The format of the table created must use style-sheets
The function would be passed the following information:-
IconArray(objType[0-???], state [0-1)
objType would be integer type (index to the Icon array) and state would be 0=Closed, 1=Open.
uid = UniqueID for this object
objType = IconArray Type
objPath=path (as show above)
ShortDesc= Name to place next to Icon
Col1-5 = Next 5 Columns
hlink=Hyperlink (to pop-up within a toolbar-less window)
InsertMyTree IconArray, ObjectsArray, Title, popupWidth, popupHeight, hlightRowClass
%>I would expect it to be called as follows:-
ShowTree (ObjList,IconList,HighlightClass,PopupWidth,PopupHeight,Title,PopupMode [0=single click, 1=doubleclick])
The resultant table should be self contained and not require any header information. The layout of the table should adjust itself to fit into all the available space of where it is written (ie. it could be in a table cell or 100% of the page width)
Windows 2000/XP IIS3 and higher for a target browser of IE5.0 or higher.