Hi Tony > Html is still quite usable in tw5 but as you know actions need to be mediated > through widgets and I understand why. However there is a rich source of > content and methods in html5 we cant make use of because of this. I do ask > myself if a few widgets, kind of widget primitives, could open more html to > us, html that depends on simple JavaScript functions, For example a way to > replace the onclick function, some ways to capture values resulting from html. > > The idea is to perhaps enable the functionality available in html5 back into > tw5 rather than the needs found in the gaps, driving new widgets into > tiddlywiki. I have some understanding of the difficulties but since I am not > expert in either html or javascript I find it hard to survey both to > determine if this were possible.
I can understand why you’re asking, but sadly I don’t think there’s a good answer. The assumptions made by DOM-based JS apps cannot be supported in an environment like TW5. One of the validations for the design of TW5 is actually React: it was invented long after TW5 was released, but it embodies exactly the same principles for updating the display in response to changes in a data store. And you find the same thing: off-the-shelf JQuery libraries are not compatible with React. At best they can be wrapped, at worst they need to be rewritten. > For example could tiddlywiki respond to html submits and store the result? > Accept the detail in a form into a tiddler and its fields. Since we can do > the reverse. We can already present a form and store the results in a tiddler when a button is pressed. We can’t do it using HTML primitives without some form of data binding, which is pretty much the raison d’etre of TW5 (and React). Best wishes Jeremy > No need to respond, just food for thought. > > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/f149d1d3-c6a8-4359-9899-9dc2bbf7b43a%40googlegroups.com. -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/F80CC66C-8F95-4C71-83EE-83CA50537853%40gmail.com.

