The information is obtained using postMessage in the same way as in twederation. The difference is that the plugin library pulls static content (in the sense that you can only get predefined things from the remote site instead of being able to request a custom set of tiddlers), this makes it less flexible but also a bit simpler and probably a bit safer.
a) The answer here is mainly 'because that how Jeremy made it'. You could make it so that opening the modal also opened the unopened libraries but then there wouldn't be an explicit user action for opening up a new connection which goes against some of the design principles tiddlywiki has adopted. b) It is getting information from within the iframe using the same process as twederation. Well, that is I copied how this works to make twederation work. The twederation connections just pass more information and have some more sophisticated communication but it is the same thing happening. c) Yes, that is one of the problems that has kept me from updating the plugin libarary I made right after Jeremy introduced it. There isn't any way to properly close an iframe and clean things up afterward in the core. I have a sloppy version working for twederation but nothing is implemented for the plugin library yet. It hasn't been a problem because the only libraries are the core one, the one I made and haven't been using and now Tobias has his library. Hopefully since he is using it too there will be some updates to the core to make it all work better. We may have to do a hangout devoted to just going over the inner workings of the wiki communication we are using -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" 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/tiddlywikidev. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/54f4a4c7-b12c-429c-a542-b8d753146893%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
