Hi sini-Kit

If you're creating a widget that needs to generate an HTML string then you
can use innerHTML. For example:

/*
Render this widget into the DOM
*/
AddUpWidget.prototype.render = function(parent,nextSibling) {
 this.parentDomNode = parent;
 this.computeAttributes();
 this.execute();
var divNode = this.document.createElement("span");
 divNode.innerHTML = this.currentSum;
 parent.insertBefore(divNode,nextSibling);
 this.domNodes.push(divNode);
};

You'll need to use the wrapper element to have something to assign the HTML
string to.

Best wishes

Jeremy.



On Tue, Feb 10, 2015 at 8:59 AM, Tobias Beer <beertob...@gmail.com> wrote:

> Hi! I making macros which paste some html code.. how to paste as html?
>>
>
> Unless you'Re fine with having ie fall off the table...
>
> http://stackoverflow.com/a/494348/777642
>
> ...this is probably the moment where you want to start working things out
> with a library like jQuery, prototype, mootools.
>
> Best wishes, Tobias.
>
> --
> 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 tiddlywiki+unsubscr...@googlegroups.com.
> To post to this group, send email to tiddlywiki@googlegroups.com.
> Visit this group at http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to