jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "file create in javascript" Watch "file create in javascript" New topic

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.


Justin Fox

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

Joined: Nov 08, 2001
Posts: 15385
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?

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
It's not a secret anymore!