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 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool Post Form to a Text File

    Hi,

    I am trying desparately to find a JavaScript or something to use to Post the results of a form to a text file/csv file/spreadsheet on the server.

    The problems I am encountering are:
    I cannot run perl scripts on the server.
    I cannot run FrontPage Extentions on the server.
    I cannot link to a perl script run on another server.

    I should explain why this is...
    The site I am developing is a closed site for an intranet.
    i.e. no access to outside connections.

    All I want is a simple script that will post the results of a form to a text file and then redirect the user to another page.

    Please help..

    WEB_NZ

  • #2
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    what about asp, it's easy but you need pws or iis. If running either you can do it easy.
    Omnis mico antequam dominus Spookster!

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Generally spoken, JavaScript can neither

    a.) Process forms submitted with the POST method.
    b.) Read, write, copy, delete, look up any files.

    You see, JavaScript was designed to run on the client side of webbrowsers, although there is a server-side version of javascript developed for the NES I believe.

    There is a workaround for IE browsers running on newer windows platforms. The FileSystemObject lets you gain access to file writing functions. Try to google that up or do a search on msdn.com to find more info.

  • #4
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    I never knew that you could use FileSystemObject in js...
    Omnis mico antequam dominus Spookster!

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Actually you can not use it generally; just in very confined environments. As I said, you need IE on a newer windows installation and have security settings adjusted to enable ActiveX scripting, so this approach can't be effective for the common website... but in a company intranet it might work.

    Though I would seriously go for a server-side language in this particular scenario web_nz described.

  • #6
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Back to the first comment... ASP.

    I have used ASP but not very much.

    Is there an easy way to do what I am needing with ASP.

    Could you shed some light on it for me please.



  •  

    Posting Permissions

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