Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #17832 > unrolled thread

FAQ Topic - How can I access the client-side filesystem? (2012-12-26)

Started by"FAQ server" <javascript@dotinternet.be>
First post2012-12-26 00:00 +0000
Last post2012-12-30 09:31 +0100
Articles 8 — 7 participants

Back to article view | Back to comp.lang.javascript


Contents

  FAQ Topic - How can I access the client-side filesystem? (2012-12-26) "FAQ server" <javascript@dotinternet.be> - 2012-12-26 00:00 +0000
    Re: FAQ Topic - How can I access the client-side filesystem? (2012-12-26) Osmo Saarikumpu <osmo@weppipakki.com> - 2012-12-28 00:30 +0200
    Re: FAQ Topic - How can I access the client-side filesystem? (2012-12-26) Dr J R Stockton <reply1252@merlyn.demon.co.uk.invalid> - 2012-12-27 20:27 +0000
      Re: FAQ Topic - How can I access the client-side filesystem? (2012-12-26) John G Harris <john@nospam.demon.co.uk> - 2012-12-28 09:04 +0000
        Re: FAQ Topic - How can I access the client-side filesystem? (2012-12-26) Dr J R Stockton <reply1252@merlyn.demon.co.uk.invalid> - 2012-12-29 18:58 +0000
          Re: FAQ Topic - How can I access the client-side filesystem? (2012-12-26) Jeff North <jnorthau@yahoo.com.au> - 2012-12-30 12:35 +1100
            Re: FAQ Topic - How can I access the client-side filesystem? (2012-12-26) Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2012-12-31 19:38 +0000
          Re: FAQ Topic - How can I access the client-side filesystem? (2012-12-26) "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-12-30 09:31 +0100

#17832 — FAQ Topic - How can I access the client-side filesystem? (2012-12-26)

From"FAQ server" <javascript@dotinternet.be>
Date2012-12-26 00:00 +0000
SubjectFAQ Topic - How can I access the client-side filesystem? (2012-12-26)
Message-ID<50da3e0a$0$281$14726298@news.sunsite.dk>
-----------------------------------------------------------------------
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 Google Groups archives [ref 1]
for previous posts on the subject.

<URL: http://msdn.microsoft.com/en-us/library/z9ty6h50%28VS.85%29.aspx>
<URL: http://www.javaworld.com/javaworld/jw-10-1998/jw-10-apptowin32.html>

References:
-----------

[1] http://groups.google.com/group/comp.lang.javascript/topics


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.

[toc] | [next] | [standalone]


#17851

FromOsmo Saarikumpu <osmo@weppipakki.com>
Date2012-12-28 00:30 +0200
Message-ID<kbii5g$ign$1@speranza.aioe.org>
In reply to#17832
On 26.12.2012 2:00, FAQ server wrote:
> -----------------------------------------------------------------------
> 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 Google Groups archives [ref 1]
> for previous posts on the subject.

What the FAQ?

--
Osmo

[toc] | [prev] | [next] | [standalone]


#17853

FromDr J R Stockton <reply1252@merlyn.demon.co.uk.invalid>
Date2012-12-27 20:27 +0000
Message-ID<8Z55dUJK9K3QFwFL@invalid.uk.co.demon.merlyn.invalid>
In reply to#17832
In comp.lang.javascript message <50da3e0a$0$281$14726298@news.sunsite.dk
>, Wed, 26 Dec 2012 00:00:03, FAQ server <javascript@dotinternet.be>
posted:

>-----------------------------------------------------------------------
>FAQ Topic - How can I access the client-side filesystem?
>-----------------------------------------------------------------------
>
>Security means that by default you can't.

That is incorrect, because one can.  The FAQ entry author, with a
limited viewpoint, presumed that the JavaScript would be running in a
Web page served by HTTP from a remote machine.  Common, but not always
so.

One should not start with a false statement and then try to erode it.
There is a word "usually".

> In a more restricted
>environment, there are options. For example, using LiveConnect to
>connect to Java with Netscape,

That last word above seems out-of-date.


> Check Google Groups archives [ref 1]
>for previous posts on the subject.

That currently gives a choice of 185132 Topics to consider, most of
which may be span of daily FAQ sections (that date is annoying).
Further searching will only be useful, AFAICS, if one can predict a set
of words used in good answers which are not commonly used in irrelevant
articles.

-- 
 (c) John Stockton, Surrey, UK.  ¬@merlyn.demon.co.uk   Turnpike v6.05   MIME.
   Web  <http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
 Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
 Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)

[toc] | [prev] | [next] | [standalone]


#17866

FromJohn G Harris <john@nospam.demon.co.uk>
Date2012-12-28 09:04 +0000
Message-ID<f+QklvCoCW3QFwi7@J.A830F0FF37FB96852AD08924D9443D28E23ED5CD>
In reply to#17853
On Thu, 27 Dec 2012 at 20:27:54, in comp.lang.javascript, Dr J R
Stockton wrote:
>In comp.lang.javascript message <50da3e0a$0$281$14726298@news.sunsite.dk
>>, Wed, 26 Dec 2012 00:00:03, FAQ server <javascript@dotinternet.be>
>posted:
>
>>-----------------------------------------------------------------------
>>FAQ Topic - How can I access the client-side filesystem?
>>-----------------------------------------------------------------------
>>
>>Security means that by default you can't.
>
>That is incorrect, because one can.  The FAQ entry author, with a
>limited viewpoint, presumed that the JavaScript would be running in a
>Web page served by HTTP from a remote machine.  Common, but not always
>so.
  <snip>

What does "client-side " mean? If it means the code is running in a web
page then your comment is wrong.

Perhaps you should complain that the wording is a bit obscure.
<FAQENTRY>

  John
-- 
John Harris

[toc] | [prev] | [next] | [standalone]


#17879

FromDr J R Stockton <reply1252@merlyn.demon.co.uk.invalid>
Date2012-12-29 18:58 +0000
Message-ID<GhZ3TcOK1z3QFwQ$@invalid.uk.co.demon.merlyn.invalid>
In reply to#17866
In comp.lang.javascript message <f+QklvCoCW3QFwi7@J.A830F0FF37FB96852AD0
8924D9443D28E23ED5CD>, Fri, 28 Dec 2012 09:04:40, John G Harris
<john@nospam.demon.co.uk> posted:

>On Thu, 27 Dec 2012 at 20:27:54, in comp.lang.javascript, Dr J R
>Stockton wrote:
>>In comp.lang.javascript message <50da3e0a$0$281$14726298@news.sunsite.dk
>>>, Wed, 26 Dec 2012 00:00:03, FAQ server <javascript@dotinternet.be>
>>posted:
>>
>>>-----------------------------------------------------------------------
>>>FAQ Topic - How can I access the client-side filesystem?
>>>-----------------------------------------------------------------------
>>>
>>>Security means that by default you can't.
>>
>>That is incorrect, because one can.  The FAQ entry author, with a
>>limited viewpoint, presumed that the JavaScript would be running in a
>>Web page served by HTTP from a remote machine.  Common, but not always
>>so.
>  <snip>
>
>What does "client-side " mean? If it means the code is running in a web
>page then your comment is wrong.

My <http://www.merlyn.demon.co.uk/linxchek.htm> is undoubtedly a Web
page.  A browser automatically makes a local copy, and displays it; and
that thus-displayed page cannot read the local filesystem.  But, with
menu File, Save [Page] As, one gets a local copy which the browser can
read and display; and that can then read the local filesystem.

Try it yourself - that might at least help to debug the instructions.

H'mmm - can a cached copy be found and read as a file, independently of
its cachedness, and what does it then do if asked to read the local
filesystem?


My <http://www.merlyn.demon.co.uk/programs/32-bit/seek.hta> is
presumably a Web page.  Firefox will fetch it and display it in "View
Source" manner.  But MS IE 8 can fetch it and display it in an HTML GUI
manner.  Press the SEEK button and it will read the local disc and
display information from it, with a short delay.  Usually, use WIPE
between SEEKs.  The "input type=text" element needs a folder reference,
not a file one.  Y is short for "Yesterday".

That is freshly tested on the PC on which it was written.  It might be
necessary for others to import and emplace my seakfyle.js; I cannot tell
from here.

And if you use the link "Instructions", you may find it useful (in which
case please take and use a true local copy (of both)).



>Perhaps you should complain that the wording is a bit obscure.
><FAQENTRY>

The wordings are generally obscure or capable of misinterpretation.
Especially the word "I".


-- 
 (c) John Stockton, nr London, UK.   E-mail, see Home Page.    Turnpike v6.05.
 Website  <http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
 PAS EXE etc. : <http://www.merlyn.demon.co.uk/programs/> - see in 00index.htm
 Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.

[toc] | [prev] | [next] | [standalone]


#17883

FromJeff North <jnorthau@yahoo.com.au>
Date2012-12-30 12:35 +1100
Message-ID<1g6vd89m6rmd3l3ge0u20td10ao8ago3as@4ax.com>
In reply to#17879
On Sat, 29 Dec 2012 18:58:18 +0000, in comp.lang.javascript Dr J R
Stockton <reply1252@merlyn.demon.co.uk.invalid>
<GhZ3TcOK1z3QFwQ$@invalid.uk.co.demon.merlyn.invalid> wrote:

[snip]
 
>| My <http://www.merlyn.demon.co.uk/programs/32-bit/seek.hta> is
>| presumably a Web page.  Firefox will fetch it and display it in "View
>| Source" manner.  But MS IE 8 can fetch it and display it in an HTML GUI
>| manner.  

In IE10, Win 8 all you get is the source code.

[snip]

[toc] | [prev] | [next] | [standalone]


#17901

FromDr J R Stockton <reply1300@merlyn.demon.co.uk.invalid>
Date2012-12-31 19:38 +0000
Message-ID<RugCAKGQne4QFw7G@invalid.uk.co.demon.merlyn.invalid>
In reply to#17883
In comp.lang.javascript message <1g6vd89m6rmd3l3ge0u20td10ao8ago3as@4ax.
com>, Sun, 30 Dec 2012 12:35:06, Jeff North <jnorthau@yahoo.com.au>
posted:

>On Sat, 29 Dec 2012 18:58:18 +0000, in comp.lang.javascript Dr J R
>Stockton <reply1252@merlyn.demon.co.uk.invalid>
><GhZ3TcOK1z3QFwQ$@invalid.uk.co.demon.merlyn.invalid> wrote:
>
>[snip]
>
>>| My <http://www.merlyn.demon.co.uk/programs/32-bit/seek.hta> is
>>| presumably a Web page.  Firefox will fetch it and display it in "View
>>| Source" manner.  But MS IE 8 can fetch it and display it in an HTML GUI
>>| manner.
>
>In IE10, Win 8 all you get is the source code.

Likewise IE9 in Win 7 64-bit; but in that Win 7 machine the 32-bit "Win
XP mode" runs IE 8 which behaves as double-quoted (>>) above,

Is that just for the default settings, or just for your current
settings, or is what you describe the only possibility for attempted
direct view?

Could it be that immediate execution is now prohibited on security
grounds, while one can still save the page and then run it independently
of the Web in the usual manner for an HTA (IIRC, it needs an include
file to actually work)?

I was not actually planning or positively expecting direct execution to
work; and I'll block it if necessary for server bandwidth reasons.
Users should keep and run a local copy of what might be considered a
useful tool.

-- 
 (c) John Stockton, nr London UK               Reply address via Home Page.
   news:comp.lang.javascript FAQ <http://www.jibbering.com/faq/index.html>.
   <http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
   <http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.

[toc] | [prev] | [next] | [standalone]


#17888

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2012-12-30 09:31 +0100
Message-ID<XnsA13960E2A9B0eejj99@194.109.133.133>
In reply to#17879
Dr J R Stockton wrote on 29 dec 2012 in comp.lang.javascript:

> H'mmm - can a cached copy be found and read as a file, independently of
> its cachedness, and what does it then do if asked to read the local
> filesystem?

If it can be decoded with a cache-22 algoritm.

What else might define a file's cachedness than
it's unfounded nottobefoundedness?

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web