External tids in standard TW

84 views
Skip to first unread message

Mat

unread,
Apr 7, 2016, 8:26:06 AM4/7/16
to TiddlyWikiDev
I have way too many question threads going on to really post another thing... but I just stumbled over this and figure it might be valuable.

http://codepen.io/KryptoniteDove/post/load-json-file-locally-using-pure-javascript

...as in TW widget to read/write to local json files using standard TW?

It's beyond my knowledge level so maybe I'm just totally off.

<:-)

PMario

unread,
Apr 7, 2016, 8:43:00 AM4/7/16
to TiddlyWikiDev
On Thursday, April 7, 2016 at 2:26:06 PM UTC+2, Mat wrote:
I have way too many question threads going on to really post another thing... but I just stumbled over this and figure it might be valuable.
http://codepen.io/KryptoniteDove/post/load-json-file-locally-using-pure-javascript
...as in TW widget to read/write to local json files using standard TW?

Reading files from a directory or the web has always been relatively straight forward. ... Writing is the crux!

Users expect if an app can read content from a file / directory, it needs to work from the web too. Which is fine. But local access only works, because the browsers make it happen.

If you want to read files from the web, you need a file server software running on the server. The client has no direct access to the host file system, as in the local setting. ... So the mechanisms involved locally and the web only look the same but technically they are very different.

As soon as writing stuff back to the hard disk, or the web, the situation becomes much more complex, because of security concerns and restrictions.

-mario

Mat

unread,
Apr 7, 2016, 3:21:08 PM4/7/16
to TiddlyWikiDev
What is it that enables TW to both write and save to the file? Couldn't this same method be used for a file that is (somehow) loaded into the TW?

<:-)
Reply all
Reply to author
Forward
0 new messages