...

View Full Version : Loading treeview control



rexmike
03-23-2005, 06:49 PM
Im trying to create a treeview that allows me to iterate through a folder contents , like the one in windows explorer.Given a folder name the function should create a parent node for each subfolder and children nodes for the files in the subfolder.Any assistance will be highly appreciated

A1ien51
03-23-2005, 08:23 PM
JavaScript is not going to be able to read the files on your system or server alone, you are going to need a helping hand?

Eric

codegoboom
03-24-2005, 02:10 PM
Right, the system treeview is separate from the object used to populate it (though, it can store objects). Windows has at least three API's which can be scripted to get directory items, and they all work a bit differently. What do you want to do with the tree's items?

codegoboom
03-24-2005, 06:35 PM
Nevermind my question.

If relevant, info about the API objects (File System Object, Windows Shell and Controls, and Windows Management Instrumentation) are available from Microsoft, as are examples of ActiveX control usage (such as one entitled "Using the TreeView Control").

Good luck.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum