Prev: At what point are local objects garbage collected?
Next: *PITIFUL* FAQ Entry - How can I access the client-side filesystem? (2010-03-15)
From: FAQ server on 14 Mar 2010 20:00 ----------------------------------------------------------------------- FAQ Topic - How can I access the client-side filesystem? ----------------------------------------------------------------------- Security means that by default you can't. In a more restricted environment, there are options. For example, using LiveConnect to connect to Java with Netscape, and using the FileSystemObject in IE. Check http://groups.google.com/group/comp.lang.javascript/topics for previous posts on the subject. http://msdn.microsoft.com/en-us/library/z9ty6h50%28VS.85%29.aspx http://www.javaworld.com/javaworld/jw-10-1998/jw-10-apptowin32.html The complete comp.lang.javascript FAQ is at http://jibbering.com/faq/ -- The sendings of these daily posts are proficiently hosted by http://www.pair.com.
From: Dr J R Stockton on 16 Mar 2010 09:45
In comp.lang.javascript message <4b9d788b$0$272$14726298(a)news.sunsite.dk >, Mon, 15 Mar 2010 00:00:03, FAQ server <javascript(a)dotinternet.be> posted: >----------------------------------------------------------------------- >FAQ Topic - How can I access the client-side filesystem? >----------------------------------------------------------------------- > >Security means that by default you can't. In a more restricted >environment, there are options. For example, using LiveConnect >to connect to Java with Netscape, and using the FileSystemObject >in IE. Still wrong, even disregarding XMLHttpRequest. You can read client files into an iframe (after persuading the user to run a saved copy of the page). But you cannot (AIUI + I hope), at the server, directly find out what was read. As a proof of that, and for other reasons, would some who keep a master copy of a modest Web site on a local machine that they control be good enough to test page <URL:http://www.merlyn.demon.co.uk/linxchek.htm> ? For the moment, I will give just one clue : you should read the whole page before pressing the long button with an upper-case value. The test will then be of the text as well as of the code. -- (c) John Stockton, nr London UK. ?@merlyn.demon.co.uk DOS 3.3 6.20 ; WinXP. Web <URL:http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links. PAS EXE TXT ZIP via <URL:http://www.merlyn.demon.co.uk/programs/00index.htm> My DOS <URL:http://www.merlyn.demon.co.uk/batfiles.htm> - also batprogs.htm. |