#1
  1. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Location
    Manchester UK
    Posts
    16
    Rep Power
    0

    Question


    Hi...

    wondering if anyone can help with a problem ive been working on...

    want to create a 'static' news board and generate the html on the fly client-side. have done similar stuff before declaring an array of user defined objects and simply looping through the array outputting the html

    problem is news items are too big to be an element in an array, (well, it works but its messy!)

    does anyone know of a way to get javascript to read a directory of files and read the contents of each file; perhaps generated in a fashion similar to XML?

    i know i could do this server-side no probs, but want to know if theres a client-side way to do this (speed!)

    hope this gets a few cogs turning

    cheers

    steve
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    300
    Rep Power
    15
    No, there is no way for JavaScript to read files either on the client, or on the server.

    For something like that you have to use either Java (or ActiveX) or some server-side technologies...

IMN logo majestic logo threadwatch logo seochat tools logo