Hi, I just tried to use an iframe to talk.tiddlywiki.org or its content and it is refused like most sites.
Can we allow iframes to tiddlytalk content and is there problems doing it?
It would be nice to have a live reference to talk.tiddlywiki.org because it can make a static tiddlywiki become an interactive one!
It would also allow one to maintain links to live conversations in a tiddlywiki to organise ones work on tiddlywiki, then you need not have to depend on bookmarks or search.
Personally I don’t see much room for misuse as all it does is empower access to out resources, the way tiddlywiki works nothing will touch the server unless the specific tiddler is opened. This allows a whole new world of metadata to be maintained in a wiki as an overlay to content in discourse. For example we could curate “how to” or “plugin” posts in a Wiki.
Sure this is already possible with links but its less interactive and removes you from our “heartland” tiddlywiki.
This is a typical code pattern that assumes a static HTML file.
Unfortunately, this does not work in TiddlyWiki… The problem is that, even though the javascript is “loaded globally” using $:/tags/RawMarkup, no tiddlers are rendered at that time, so the element <d-topics-list> does not yet exist.
I tried putting the <d-topics-list> element in the same $:/tags/RawMarkup tiddler:
But that didn’t work. It did show an iframe at the bottom of the page (I think it was generated by the script), but that displayed an error: “talk.tiddlywiki.org refused to connect”, which is a common error message when attempting cross-origin scripting from file://
I also tried using a variation of @Charlie_Veniot’s iframe scripting method by putting the following into a regular tiddler:
Sorry, yes, assume zero knowledge of TW parsing flow on my part, I was just pointing out that this code isn’t to be used in tandem with an iframe – it generates iframes as part of script output.
tbh (i loathe “discourse” forum )
would i would like to see
/daydreams
is if i could “export-discourse” topic into a “topic-tiddler”
with similar ui (like talk.tiddlywiki post & left:post/date slider )
that might be possible with " tm-http-request"
though i didnt have much luck
… it appears ( from reading CORS for webserver API to GET tiddler ) cors was the issue and https://api.allorigins.win/raw?url=
might help …
Do you mean you’re able — from within a TW instance — to display specific posts from discourse?
If so, could you post a link to a working demo of this?
(Having spent some time trying to go down this rabbit-hole, without success, I’m reluctant to try to reconstruct anything based on a “that’s helpful” confirmation.)