www.webdeveloper.com
Results 1 to 6 of 6

Thread: JavaScript File I/O

  1. #1
    Join Date
    Nov 2002
    Location
    SoCal
    Posts
    2

    JavaScript File I/O

    Does JavaScript have any file input/output capabilities?

    In particuliar, I am going to write a program where I need to read a large amount of data from a file. Does JavaScript allow for reading data from files?

    If so what is the syntax.

    THanks

    Xeifrank

  2. #2
    Join Date
    Nov 2002
    Location
    England
    Posts
    275
    Not client-side JavaScript I'm afraid.

  3. #3
    Join Date
    Dec 2002
    Posts
    6

    Question

    what about server side javascript?

  4. #4
    Join Date
    Nov 2002
    Location
    SoCal
    Posts
    2

    JavaScript File I/O...2

    Basically, I am making a webapge, uploading it to my ISP server. I have a JavaScript program in the webpage. I have alot of data that I need to use in this JavaScript program. Do I have to hardcode the data in the JavaScript code? Is there any way to put this data in a file and read it?

    Thanks,

    Xeifrank

  5. #5
    Join Date
    Nov 2002
    Posts
    20
    you could put the data into hidden form fields and then submit the form to a perl script through a javascript submit command (document.formname.submit();).
    Last edited by Ryan; 12-02-2002 at 04:12 AM.

  6. #6
    Join Date
    Dec 2002
    Posts
    6
    i need this function but i dont wanna code it in because its for a forum. i tried using php and mysql but i couldnt get the mysql to wrok (truth is i didnt even know how to use it )

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles