Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: RE: Creating dynamically a text file using JavaScript


Message #1 by "Ramez Chehab" <rchehab@s...> on Tue, 5 Nov 2002 09:26:45 -0800
Thanks. There is no need anymore to help. I've found the way on how to
do this with JavaScript.

Thanks anyway.


-----Original Message-----
From: Ramez [mailto:rchehab@s...] 
Sent: Thursday, October 24, 2002 11:32 PM
To: JavaScript HowTo
Subject: [javascript_howto] Creating dynamically a text file using
JavaScript


Hello

Let's say I have this HTML file saved as "someTestFile.html" in a IIS 
server directory.

<body>
<form name="someTextForm" method="post" action="someTest.asp">

Name : <input type="text" name="nameTxt">

<input type="submit">
</form>
</body>

Now, I have a text file named "someTest.js" also saved on the IIS server

in the same directory where the "someTestFile.html" file resides. On the

someTest.js file, I want to create or 'save' the text control entered on

the Text Control of the HTML file.

Can any body please give me a small example on how to do that using
server 
side JavaScript? - I know how to read an already created ".js" file 
content, but I have no clue on how to create dynamically contents on it.
I 
beleive, I have to use the Server.CreateObject command,.but I haven't
got  
references telling me where I can get all the commands for IIS asp 
commands, despite I'm trying until now.

I will appreciate greatly a small head start coding.

Regards

Ramez

---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20


  Return to Index