Sample Usage: (process_request.asp
)Dim tv Set tv = New TreeView tv.MenuTable = strTable tv.UrlTarget = "_blank" tv.ConnectionString = strConn Response.Write tv.GetChildNodes(parentId) Set tv = Nothing
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 databaseajax.js & scripts.js
- contain the Ajax and javascript functions required to load the treenodes dynamically.process_request.asp
- the file that is loaded by the Ajax function.