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 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2002
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    show folder contents in window

    I have a folder in my site (virtual directory of a forms folder on the network) and I wanted to know if there was a way in JS to have a window pop-up which shows the contents of that folder, more or less the same view as if the user opened the folder from their desktop. The files and folders in this folder are updated often, so I need a way to not "hard code" the contents.


  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Not from javascript. Javascript is client side code, you need server side code to enumerate the directory and display it but before you go to that effort see if you can enable the directory display for that directory in the web server itself. Most web servers have such a capability built in but it's usually disabled because most sites don't want people to be able to "see" the files in a directory.


  •  

    Posting Permissions

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