Any possible way to write a text document ?

A

Aaron Gray

I know that there is probably no way to do this but, I would really like to
be able do this, so ...:)

Aaron
 
R

Randy Webb

Aaron Gray said the following on 11/10/2005 4:16 PM:
I know that there is probably no way to do this but,

To do what?
I would really like to be able do this, so ...:)

That depends, directly, on what you would "really like to be able to do".
 
A

Aaron Gray

I know that there is probably no way to do this but,
To do what?


That depends, directly, on what you would "really like to be able to do".

Sorry Randy, forgot to include question in message.

Is there any possible way to write a text file from JavaScript to the local
machine ?

Aaron
 
R

Randy Webb

Aaron Gray said the following on 11/10/2005 4:56 PM:
Sorry Randy, forgot to include question in message.

Is there any possible way to write a text file from JavaScript to the local
machine ?

Not in any kind of default security environment. IE has the ActiveX
FileSystemObject that can allow you to write files (providing it is
given access). Mozilla may have a comparable counterpart but I do not know.
 
A

Aaron Gray

Is there any possible way to write a text file from JavaScript to the
Not in any kind of default security environment. IE has the ActiveX
FileSystemObject that can allow you to write files (providing it is given
access).

Thanks, I'll look in to that when I get some time.

Aaron
 
D

Dr John Stockton

JRS: In article <[email protected]>, dated Thu, 10 Nov 2005
21:56:29, seen in Aaron Gray
Is there any possible way to write a text file from JavaScript to the local
machine ?


Here the default assumption is Web use.

For that, write the data to a textarea and ask the user to copy'n'paste
it to where he wants it; or write it to a new window and ask him to use
File, Save As or equivalent. First, though, check that they work for an
arbitrary user and a page from a remote server.

To do that sort of thing in javascript run locally with WSH, which is
really Jscript, ask in a a Jscript group - see FAQ 2.2.



<FAQENTRY> The Jscript link in 2.2 should be copied or moved into 2.7.
 
A

Aaron Gray

Is there any possible way to write a text file from JavaScript to the
Here the default assumption is Web use.

For that, write the data to a textarea and ask the user to copy'n'paste
it to where he wants it; or write it to a new window and ask him to use
File, Save As or equivalent. First, though, check that they work for an
arbitrary user and a page from a remote server.

Yes. I have considered that and will probably use that approach as it is
appropriate for the application I am working on but it would be nice to be
able to write files at some point.
To do that sort of thing in javascript run locally with WSH, which is
really Jscript, ask in a a Jscript group - see FAQ 2.2.

Probably just ActiveX in JavaScript to access WSH.

Aaron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top