On Oct 31, 2006, at 3:03 PM, abargnesi wrote:
> Hello,
>
> I am using the DOM Manipulation js library that is part of Mochikit
> and
> I like it a lot. And it seems quite fast. However I would like it to
> handle one case that it doesn't.
>
> At some point in the creation of a TABLE I create the TDs for it like
> so:
>
> return TD({'nowrap':'nowrap','class':'ListData','style':data[0]},
> data[1]);
>
> The value for data[1] is an html string consisting of an anchor tag
> that is returned by the server. There is no construction of an anchor
> so the value is outputted as text for the TD element. Is there a way
> to have this html string interpreted as a DOM element?
>
> For instance would it be possible to do something like the following:
>
> return TD({'nowrap':'nowrap','class':'ListData','style':data[0]},
> DOM_Convert(data[1]));
>
> Thanks. Keep up the great work! Awesome library.
No. Construct the TD, then set its .innerHTML attribute, then return it.
Zac
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
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/mochikit
-~----------~----~----~----~------~----~------~--~---