>>Most web pages just demonstrate that you cannot access the
>>local file system without getting permission by the user.
>>--
>>Christof

>that was what I found as well, and I couldn't even get that to work

well I have got a cut down example to sort of work (I said my js is a bit
rusty):-
(<> changed to [] to fool the net nanny)

[HTML]
[BODY]
[H1 unselectable="on"]Writing text to a local file[/H1]
[script language="javascript"]
function Writxt()
{
    document.execCommand('SaveAs',false,'C:\\TEMP\\jsjsjs.txt')
}
[/script]
[P unselectable="on"]Click the button to turn the text into a file.
   By default the text will be written to C:\TEMP\jsjsjs.txt[/P]
[P style="color=#3366CC"]The quick brown Fox jumps over the lazy dog![/P]

[BUTTON onclick="Writxt()" unselectable="on"]Click to write file[/BUTTON]
[/BODY]
[/HTML]

and yes, you are prompted before the file is written, but imho
execCommand-SaveAs is still against the spirit of the js sandbox and should
never have been released.

Andrew Davies  MBCS CITP
  - AndyD        8-)#


**********************************************************************

This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify the system manager.

This footnote also confirms that this email message has been swept by 
MIMEsweeper for the presence of computer viruses.

Please contact [EMAIL PROTECTED] with any queries.

**********************************************************************



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to