Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Loading treeview control

    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

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    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
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    Regular Coder
    Join Date
    Aug 2004
    Location
    codegoboom@yahoo.com
    Posts
    999
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?
    *this message will self destruct in n-seconds*

  • #4
    Regular Coder
    Join Date
    Aug 2004
    Location
    codegoboom@yahoo.com
    Posts
    999
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    *this message will self destruct in n-seconds*


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •