Hi there,
On 5/4/07, Herb <[EMAIL PROTECTED]> wrote:
> I have seen recommendations to set the innerHTML after creating the
> cell and also read that MochiKit does not let you do this. I will
> also have to set some anchors in some cells, but I have not yet gotten
> that far.
I'm not sure what you mean by that MochiKit doesn't allow you to do
that. You should be able to do
var x = TD();
x.innerHTML = "Whatever <strong>you</strong> like.";
> Here is what I think is the relevant code:
> row_display = function (row) {
> return TR(null, map(partial(TD, null), row));
> }
If the array with your data contains html code you could make that:
row_display = function (row) {
return TR(null, map(function (htmlcode) {
var t = TD();
t.innerHTML = htmlcode;
return t;
}, row));
}
I didn't test this so sorry if I'm feeding you with nonsense.
Arnar
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---