I have similar interests.
Are the tid filenames already known?
What if you could see the content in the files without importing them?
Do you want a directory list to select from?
How do the tid files get there in the first place?
How are you serving the tiddlywiki or is it in a file folder?
Do you want a button that on clicking imports a known tid file in the current directory?
With these answers I may provide some details and explore a path to answer your question
Regards
Tony
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/e525b84a-0422-4506-998a-5d5bfe08c878%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Am 14.11.2018 um 04:41 schrieb TonyM:
> Are the tid filenames already known?
For posts it would be good to import all tids in a folder I think this
is most practical for most usecases.
> What if you could see the content in the files without importing them?
I knowThis could be realized by php...but in most cases I would need
work with the files in the wiki.
> Do you want a directory list to select from?
This would be great!
> How do the tid files get there in the first place?
Mostly uploaded by my php-upload mechanism. Maybe some uploaded by me
vía ftp
> How are you serving the tiddlywiki or is it in a file folder?
Html File from webdirectory
> Do you want a button that on clicking imports a known tid file in the current directory?
>
Yeah! ...and all unknown .tids & .jsons in the directory as well. In my
case they are automatically tagged and there is a filter against <code>
so that they could be imported without risk...
> To Mark's reply:
I guessed that there were security reasons... but are these browser-restrictions? What is the difference form the existing export-mecahnisms? And why is this more dangerous than the drag n drop import way?
So thanks and let's work on this!
Yours Jan
$tw.wiki.addTiddlers([{"title": "HelloThere","text": "Some text"},{"title": "Getting Started","text": "Some more text"}]);
<script src="./tiddlers/first-bundle.jsonp"></script>
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/0bef0f79-4a78-4ce3-82a7-852a671cd404%40googlegroups.com.
I can explain a Use-Case of some interest where it could be very helpful.
Best wishesJosiahJeremy wrote...There is one technique that could be used to accomplish some of what is being discussed in this thread: JSONP https://en.wikipedia.org/wiki/JSONPBasically, it would require that tiddlers be stored in .jsonp files like this:$tw.wiki.addTiddlers([{"title": "HelloThere","text": "Some text"},{"title": "Getting Started","text": "Some more text"}]);Then, to load tiddler(s) in a particular file, you’d need to use JS to create a script tag that references that file and insert the script tag into the DOM. The script tag would look like this:<script src="./tiddlers/first-bundle.jsonp"></script>In TW5, one might implement the loading via a startup module that handles a "tm-load-jsonp” message.It would be straightforward to make a new exporter template for the JSONP format.
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/ba1bf67c-fbb3-4f94-824b-9e5d5bb9bdb9%40googlegroups.com.
Can the script tag be used anywhere during loading, or was that for just for illustrative purposes?
If I understand the flow you are suggesting, you wouldn't be able to load tiddlers on the fly. But you could activate a checklist that would then be used during the next reload to bring in the tiddlers ??
I feel like the security model is very odd. They don't want you to load data, but loading actual code is OK?
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/5f7bc9fd-330b-4e7e-819b-fcb26d818ebe%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/A1C2E9AE-2AAA-4986-AA7C-FBDC70C4B485%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/5BEECCE8.1080208%40googlemail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/52C5EE7B-D946-41BA-9CDC-9C09F6D91AE9%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/4C9E35E9-8BFB-4AFA-B41C-B3E8D19DBE6E%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/A1C2E9AE-2AAA-4986-AA7C-FBDC70C4B485%40gmail.com.