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 02-14-2010, 01:56 PM   PM User | #1
Maven000
New to the CF scene

 
Join Date: Feb 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Maven000 is an unknown quantity at this point
Question How to save Text Box value to a *.txt file ? - Javascript

Hello,
i m new Javascript but knows basics of functions etc.
ive created a website, which also has field to Submit Email addresses for newsletters..

Now, i have a TextBox (for users to write email addresses)
and a Submit button in which i want to call a Javascipt script function which OnClick takes the value(email address) from the textbox and saves it to a .txt file on server.

i think i am just missing a single line, the function name which will store the value.. i searched ovr the net but didnt find it..

plz help mee.
Thankyou!
Maven000 is offline   Reply With Quote
Old 02-14-2010, 03:35 PM   PM User | #2
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,042
Thanks: 197
Thanked 2,412 Times in 2,390 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
JavaScript is purely a client-side language, and has no capability to write to a file (except a cookie), communicate with the server, access a database, the client's operating system or the Windows registry, or alter the default behaviour of the browser.

You can only capture the email addresses using server-side scripting.


All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.
Philip M is online now   Reply With Quote
Reply

Bookmarks

Tags
box, file, save, text, txt

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 07:11 PM.


Advertisement
Log in to turn off these ads.