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


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

Local filesystem.

Started byJPM <jpm@ailleurs>
First post2016-12-08 09:22 +0100
Last post2016-12-13 10:11 -0800
Articles 6 — 5 participants

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


Contents

  Local filesystem. JPM <jpm@ailleurs> - 2016-12-08 09:22 +0100
    Re: Local filesystem. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-12-08 10:58 +0100
    Re: Local filesystem. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-12-08 11:00 +0100
    Re: Local filesystem. Dr J R Stockton <reply1600@merlyn.demon.co.uk.invalid> - 2016-12-09 20:11 +0000
      Re: Local filesystem. rmmjr@rmmillerjr.com - 2016-12-11 06:53 -0800
    Re: Local filesystem. "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-12-13 10:11 -0800

#31782 — Local filesystem.

FromJPM <jpm@ailleurs>
Date2016-12-08 09:22 +0100
SubjectLocal filesystem.
Message-ID<58491839$0$3329$426a74cc@news.free.fr>
I am writing a web application and I want to store some user data
on his local site, not on the server.
Is it possible ?
Is there a set of functions for manage the local filesystem ?
And if it is true, how can I do that ?
Thanks for any idea.
JPM

[toc] | [next] | [standalone]


#31784

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2016-12-08 10:58 +0100
Message-ID<1959172.iZASKD2KPV@PointedEars.de>
In reply to#31782
JPM <jpm@ailleurs> wrote:
^^^^^^^^^^^^^^^^^^
Non, monsieur.

> I am writing a web application and I want to store some user data
> on his local site, not on the server.
> Is it possible ?

Yes.

> Is there a set of functions for manage the local filesystem ?

Yes.

> And if it is true, how can I do that ?

Depends on the data.  How long have you searched (the Web) for a solution?

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

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


#31785

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2016-12-08 11:00 +0100
Message-ID<1699821.PYKUYFuaPT@PointedEars.de>
In reply to#31782
Stefan Ram wrote:

>   A script has no direct access to the file system though.

Incorrect.  It depends where and how the script is running.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

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


#31791

FromDr J R Stockton <reply1600@merlyn.demon.co.uk.invalid>
Date2016-12-09 20:11 +0000
Message-ID<zoCVfrks$wSYFwuw@invalid.uk.co.demon.merlyn.invalid>
In reply to#31782
In comp.lang.javascript message <58491839$0$3329$426a74cc@news.free.fr>,
Thu, 8 Dec 2016 09:22:43, JPM <jpm@ailleurs.?.invalid> posted:

>I am writing a web application and I want to store some user data
>on his local site, not on the server.
>Is it possible ?
>Is there a set of functions for manage the local filesystem ?
>And if it is true, how can I do that ?
>Thanks for any idea.

Read <https://en.wikipedia.org/wiki/HTML_Application>.

A Web application should not be able to read/write the local filesystem
without explicit permission; but running an HTA in MSIE might be
considered as giving such permission.

See <https://en.wikipedia.org/wiki/Sandbox_(computer_security)> and
<https://en.wikipedia.org/wiki/Sandbox_(software_development)>.

Look at <http://wsh2.uw.hu/index.html> ff., as it might be useful to
you, some day.

-- 
 (c) John Stockton, Surrey, UK.  ¬@merlyn.demon.co.uk   Turnpike v6.05   MIME.
 Merlyn Web Site <                       > - FAQish topics, acronyms, & links.

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


#31792

Fromrmmjr@rmmillerjr.com
Date2016-12-11 06:53 -0800
Message-ID<9b76674a-9d6e-41e5-99d5-333192448853@googlegroups.com>
In reply to#31791
A web application can do whatever it wants —if implimented improperly— however they will do what they are told to do perfectly most of the time.
If the web app is being served on his local machine you can write Javascript intended to be used on a specific platform i.e. macOS/Unix or any other operating system that exists and I don't care about. If it is being served via his server then it will more than likely have to be done with session/local storage and configured with key/pair values, JSON.parse and a whole lot of other stuff that could have been done using PHP and the FTP protocol.

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


#31840

From"Michael Haufe (TNO)" <tno@thenewobjective.com>
Date2016-12-13 10:11 -0800
Message-ID<53501ee0-58ee-4a51-a3a1-e39bd8076378@googlegroups.com>
In reply to#31782
On Thursday, December 8, 2016 at 2:22:22 AM UTC-6, JPM wrote:
> I am writing a web application and I want to store some user data
> on his local site, not on the server.
> Is it possible ?
> Is there a set of functions for manage the local filesystem ?
> And if it is true, how can I do that ?
> Thanks for any idea.

Perhaps Web Storage will cover your needs:

<https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API>

[toc] | [prev] | [standalone]


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


csiph-web