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 5 of 5

Thread: file IO with js

  1. #1
    New Coder
    Join Date
    Jan 2003
    Posts
    60
    Thanks
    0
    Thanked 0 Times in 0 Posts

    file IO with js

    hello to all,

    can any one tell me how to fill an array wit h all the files in a subdirectory and even recurse directories pls, dont know how to do IO in js, is it the same as java where you need to open a fileInputStream and bufferReader ?


    all i want to do is fill the array then i have a script that uses the array for a slideshow calling each image after n secs.

    ATM i fill the array manually in the code


    this added feature is so end user can upload images whenever they want to update the slideshow



    kind regards,


    g00fy

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    644
    Thanks
    0
    Thanked 0 Times in 0 Posts
    cant get a dir listing with javascript, you'll need a serverside language

  • #3
    Regular Coder
    Join Date
    Aug 2002
    Location
    Silicon Valley, CA
    Posts
    980
    Thanks
    0
    Thanked 0 Times in 0 Posts
    JavaScript has nothing to do with Java, is nothing like it, and is not capable of I/O.

  • #4
    New Coder
    Join Date
    Jan 2003
    Posts
    60
    Thanks
    0
    Thanked 0 Times in 0 Posts
    so i am learning,

    even the way objects are instantiated is different



    thanx

    g00fy

  • #5
    New Coder
    Join Date
    Nov 2002
    Location
    London, UK
    Posts
    88
    Thanks
    0
    Thanked 0 Times in 0 Posts
    But as has been said if you use a server side language you can still get the file names into js for use with your slide show.

    So all might not be lost.

    Adam


  •  

    Posting Permissions

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