www.webdeveloper.com
Results 1 to 7 of 7

Thread: Saving to files

  1. #1
    Join Date
    Feb 2003
    Posts
    86

    Saving to files

    I know that you cannot write to files in Javascript, but I am wondering if there is a "poor-man's alternative." Without getting too complicated, I would like to save some typed data in a text box to a text file, maybe with some basic formatting like carriage returns so that the text is put in by lines.
    Thanks for any help.
    Man the escape pods!

  2. #2
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    PHP would be a great way to do this. Does your server support it?

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  3. #3
    Join Date
    Feb 2003
    Posts
    86
    Actually, what I am trying to do is to write a tool for my job so that we can document certain information locally. No, I can't run a PHP server.
    Basically, I am running the HTML pages from locally stored files, and I need to be able to save the data locally to a text file or Excel spreadsheet. Either will work just fine, but writing to a text file is probably easier. Thanks.
    Man the escape pods!

  4. #4
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Well, that is not going to be possible client side and cross browser...

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  5. #5
    Join Date
    Feb 2003
    Posts
    86
    I have heard that something like this can be done using ActiveX. Is that so?
    Man the escape pods!

  6. #6
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Quite probably. I don't know much about ActiveX, but I'd be willing to bet that it might work. I'm not sure what the compatablity issues with ActiveX are, though... I do know that alert's will popup when you try to write a text file on the users computer.

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  7. #7
    Join Date
    Feb 2003
    Location
    Britain
    Posts
    1,335
    If active X works like Flash does - and it does for a lot of things - then this has to be on a server with special programs installed.

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