Re: Any possible way to write a text document ?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Any possible way to write a text document ?

From: Dr John Stockton <jrs@merlyn.demon.co.uk>
Date: Fri Nov 11 2005 - 23:19:41 CET

JRS: In article <3thu3rFs8n1mU1@individual.net>, dated Thu, 10 Nov 2005
21:56:29, seen in news:comp.lang.javascript, Aaron Gray
<ang.usenet@gmail.com> posted :

>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.
 

-- 
 © John Stockton, Surrey, UK.  ?@merlyn.demon.co.uk   Turnpike v4.00   IE 4 ©
 <URL:http://www.jibbering.com/faq/>  JL/RC: FAQ of news:comp.lang.javascript 
 <URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
 <URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Received on Mon Nov 21 03:26:20 2005