Hi Tony

> Is there a way to get this function added to the wiki so that the HTML/CSS 
> solution works?.

Not as written, no.

It is an example of conventional DOM-based programming, as popularised by 
jQuery. The key characteristic is that the state of the page is maintained in 
the DOM. TiddlyWiki 5 is based on a fundamentally different architecture where 
the state is maintained in JavaScript variables, and the DOM can be recreated 
from that state as needed.

DOM-based JavaScript libraries can be integrated with TiddlyWiki (there are 
several examples in the plugin library, such as CodeMirror, the Twitter plugin 
etc.). But it’s a complex process that requires an understanding of the 
specifics of the library and of TiddlyWiki itself.

(TiddlyWiki Classic, on the other hand, is very much a traditional DOM-based 
app, and it’s relatively easy to drop in off-the-shelf JavaScript).

It’s worth pointing out that TiddlyWiki 5 adopted this architecture in 2011, 
but it has since become mainstream in the shape of the React framework. There’s 
the same chasm for jQuery developers to cross to get to React as there is for 
TiddlyWiki 5.

Best wishes

Jeremy.

> 
> Thanks in advance
> Tony
> 
> -- 
> 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 tiddlywikidev+unsubscr...@googlegroups.com 
> <mailto:tiddlywikidev+unsubscr...@googlegroups.com>.
> To post to this group, send email to tiddlywikidev@googlegroups.com 
> <mailto:tiddlywikidev@googlegroups.com>.
> Visit this group at https://groups.google.com/group/tiddlywikidev 
> <https://groups.google.com/group/tiddlywikidev>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywikidev/8e038951-2cd6-47c5-971c-244a7778e100%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywikidev/8e038951-2cd6-47c5-971c-244a7778e100%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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 tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
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/70850C4F-D672-4EE3-8797-634439951C1C%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to