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

    Join Date
    Sep 2001
    Posts
    178
    Rep Power
    13

    Unhappy Javascript File object giving problem


    I am struggling to read a file using javascript File object. I keep getting the error File is undefined.

    This is my sample code

    fread = new File("somefile.txt");
    write(fread);

    The text file is in the same directory as my html file so I dont think it would be necessary to give the full path. I also tried giving the full path but the same error message comes. I tested this on IE6 and netscape 4.7

    Thanks for your help
  2. #2
  3. No Profile Picture
    Senior Citizen
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2001
    Location
    leftcoast
    Posts
    2,019
    Rep Power
    16
    There is no client-side JavaScript File object.

IMN logo majestic logo threadwatch logo seochat tools logo