wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes file create in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "file create in javascript" Watch "file create in javascript" New topic
Author

file create in javascript

Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802


in the above code i want to create a file with the persons name,
and then write their message to it.
but i want to do it on the space provided by freewebs.com
but when i click on the button "hit me" i get an error on page.
i tried just putting name+".txt" in the first parameter in the
filecreate function. But i get the same error.

in my "server space", i guess thats what it is called, i have a folder
named 'messages'.

is there a correct way to do this? or am i attempting something that is
not fesable.

Thanks,

Justin Fox


You down with OOP? Yeah you know me!
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
The activeX object would write the file to the user's computer if they have the settings set to allow it to happen.

If I remember correctly, freewebs has a contact us form in their options. Why don;t you use that?

Eric
Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
wanted to see if i could do it myself.

is there a way?


Justin Fox
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: file create in javascript
 
Similar Threads
Form does not validated correctly
getElementByID not working in Firefox but works in IE?
servlet parsing data to javascript
IE: window.opener is null
Need Help With Dynamic text box in JSP