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 12-18-2006, 05:21 PM   PM User | #1
mynameisdave145
New Coder

 
Join Date: Oct 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
mynameisdave145 is an unknown quantity at this point
output to txt file

I am working on a small assignment for a class where I need to have 2 inputs (name text, and message textbox), then store this data in a "forum" type of setting.

I have this working exactly how I want it in PHP, however the server I must host it on does not allow PHP script so I am being forced to convert this over to javascript.

I want it so the user inputs their fields, then those fields are added to a (already created) txt file with | as the field seperator. From there I have no problems reading the file and outputting the data as I wish, however I have not been able to find a cross-browser solution to adding the submitted data to the txt file.

example:
name: bob
message: test message

in txt file, output to >>>

bob|test message

Any help would be greatly appreciated.
mynameisdave145 is offline   Reply With Quote
Old 12-18-2006, 09:33 PM   PM User | #2
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,033
Thanks: 197
Thanked 2,410 Times in 2,388 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
JavaScript is a client-side language and has no ability to read from or write to a file. Only a server-side language such as PHP is able to do this.
Philip M is offline   Reply With Quote
Old 12-19-2006, 01:44 AM   PM User | #3
vegu
New Coder

 
Join Date: Dec 2006
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
vegu is on a distinguished road
could use perl if youre not allowed to use php :D
__________________
http://demo.vegui.org - vegUI AJAX framework
http://www.landsofkazram.com - browser based graphical MMORPG
vegu is offline   Reply With Quote
Old 12-20-2006, 07:49 PM   PM User | #4
mynameisdave145
New Coder

 
Join Date: Oct 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
mynameisdave145 is an unknown quantity at this point
Quote:
Originally Posted by Philip M View Post
JavaScript is a client-side language and has no ability to read from or write to a file. Only a server-side language such as PHP is able to do this.
Thats odd, because I can read xml files just fine using the dom, anyway i could use this technology to write as well?
mynameisdave145 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 01:38 PM.


Advertisement
Log in to turn off these ads.