*** Relisted ***
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 and executed at the server, which would return a string containing the client-side DHTML to be posted back to the client browser by my code...
+/- expansion of the tree must be handled at the client end (an 'include' script for the client end is fine, but *must* be in VBScript / DHTML)
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 010101 is the child of 0101 which is the child of 01 which is the child of root. 020101 is the child of 0201 which is (along with 0202) the children of 02 which of course is the child of root
(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
I would expect it to be called as follows:-
InsertMyTree IconArray, ObjectsArray, Title, popupWidth, popupHeight, hlightRowClass, popupmode
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 IIS and higher for a target browser of IE5.0 or higher.