This code is an update of the Simple Ajax TreeView. The major change is that this one has more flexibility and is easier to use.
Sample Usage: (
Set tv = New TreeView
tv.MenuTable = strTable
tv.UrlTarget = "_blank"
tv.ConnectionString = strConn
Set tv = Nothing
The source code for this solution cotains the following files:
treeview.asp:The treeview source file which implements the public function
GetChildNodes(intParentId) which returns a transformed XML string of the child nodes. Other private helper functions include:
GetDbXml, GetDbString & LoadXmlDoc
treeview.xsl - the stylesheet to transform the XML.
site.mdb - the sample database
process_request.asp - the file that is loaded by the Ajax function.