Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-04-2002, 06:19 AM   PM User | #1
web_nz
New to the CF scene

 
Join Date: Aug 2002
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
web_nz is an unknown quantity at this point
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
web_nz is offline   Reply With Quote
Old 08-04-2002, 01:11 PM   PM User | #2
Mhtml
Senior Coder

 
Mhtml's Avatar
 
Join Date: Jun 2002
Location: Sydney, Australia
Posts: 3,531
Thanks: 0
Thanked 1 Time in 1 Post
Mhtml is an unknown quantity at this point
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!
Mhtml is offline   Reply With Quote
Old 08-04-2002, 01:25 PM   PM User | #3
mordred
Senior Coder


 
Join Date: Jun 2002
Location: frankfurt, german banana republic
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
mordred is an unknown quantity at this point
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.
mordred is offline   Reply With Quote
Old 08-04-2002, 01:45 PM   PM User | #4
Mhtml
Senior Coder

 
Mhtml's Avatar
 
Join Date: Jun 2002
Location: Sydney, Australia
Posts: 3,531
Thanks: 0
Thanked 1 Time in 1 Post
Mhtml is an unknown quantity at this point
I never knew that you could use FileSystemObject in js...
__________________
Omnis mico antequam dominus Spookster!
Mhtml is offline   Reply With Quote
Old 08-04-2002, 03:24 PM   PM User | #5
mordred
Senior Coder


 
Join Date: Jun 2002
Location: frankfurt, german banana republic
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
mordred is an unknown quantity at this point
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.
mordred is offline   Reply With Quote
Old 08-05-2002, 07:08 AM   PM User | #6
web_nz
New to the CF scene

 
Join Date: Aug 2002
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
web_nz is an unknown quantity at this point
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.

web_nz is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:21 AM.


Advertisement
Log in to turn off these ads.