> On 21 Oct 2018, at 11:49, Jed Carty <[email protected]> wrote:
> 
> So if you are saying that there is some file 
> '/home/me/tiddlywiki/something.json' and it's location is both known and 
> won't change and I want to import it, there is nothing preventing the browser 
> from doing that.

Are you thinking of using XMLHttpRequest()? Sadly, for the last several years 
all major browsers prevent pages loaded from a file:// from reading other 
file:// URI locations, for fairly obvious security reasons.

As far as I know, the best we can do to achieve the OP is to use JSONP — in 
other words, have JS code dynamically add a <script> tag that points to a file 
that contains the data as a function call. I don’t think it could be done with 
a plain JSON file.

Best wishes

Jeremy.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/B89E4229-5879-4D61-9861-7B91571A6613%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to