Hi,
I'm new to this group and MochiKit.  I need to be able to have the
HTML in a TD object interpreted.

I am trying to render a table using data that I got through JSON.  It
works fine except that it does not render the HTML (specifically span
tags) in the data cells. It just shows the span tags.

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.

Each row should consist of a number, a title, a summary, and two other
numbers.  These do not really have to be displayed as a table, they
could be displayed in a style similar to that used in Google results
(e.g.,:)

1   This is the title which is also a link
     snippets are cool...they add a lot of information...here is
another snippet  <img1 with link> <img2 with link>


Here is what I think is the relevant code:
        row_display = function (row) {
            return TR(null, map(partial(TD, null), row));
        }
        var newTable = TABLE({"id":"oldTable"},
            TBODY(null,
            map(row_display, resarray)));

        oldTable = getElement('oldTable')
        swapDOM(oldTable, newTable);
Thanks for any suggestions.

Herb


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to