On 11/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I am new to mochikit. I require to create a dynamic form with a table
> inside it with text boxes as the cells. I did this using javascript.
> What is the mochikit way of doing this.
>
> I did try something like this, but didnt work.
>
> var newForm = FORM({'action':'/action'},   ----form
>                         TABLE({'border': 2},        ------table
>                            TR(null,
>                                 TD(null, INPUT({'type':'text'})),
> -----text box
>                                 TD(null, "test node2"))))
> );
>
> swapDOM("action-place", newTable);

It doesn't work in IE unless you use a TBODY tag inside the TABLE.

-bob

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