Whoops, submitted too soon.
My thoughts on the matter are that you could pass the html string of the
tiddler to Jquery to get a jQuery object:
var tiddlerTextHtmlOnly = store.getTiddlerText(title+'##HTML');
var tiddlerHtmlJqueryObj = jQuery(tiddlerTextHtmlOnly);
... in my example I've attached a click event to a rendered tiddler DOM
element
jQuery('#contentWrapper').delegate(".addButton", "click", function(){
addRow(jQuery(this));
});
In the addRow function I'd get the parent id of the addButton
function addRow(thisButton){
buttonParentID = thisButton.parent().attr('id');
};
I'd find the respective id in the jQuery object derived derived from the
tiddler's pre-rendered HTML section. (and this is where it breaks down for
me using this method)
?? maybe something like: ??
jQuery("buttonparentID",tiddlerHtmlJqueryObj).clone().insertAfter(jQuery(
buttonParentID));
then:
1. replace the section with this output
2. use refreshTiddler to re-render
3. add events to the new elements if neccessary
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/tiddlywiki/-/o18KjrvgU7oJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.