Hi,
i want a editable table, when i click on a row it should disappear and
a edit form should appear instead of it.
I'm using the sortable tables from mochikit
(http://www.mochikit.com/examples/sortable_tables/index.html) which
work pretty good and a bit javascript to change the DOM which gets
called by onclick.

editEntry = function (id) {
    var td = TR({'ID' : 'entry_' + id}, TD({'colspan': '7'}, 'edit: ' +
id));
    swapDOM("entry_" + id, td);
};

Currently it doesnt do much but i want to have a form to edit the
contents of the row. How could i do this? Turbogears widgets look good,
but i dont know how to create them with javascript dynamically for
every row.

Where could i put the form in the code, i think its too ugly to have
the html-code for the form in the javascript file. And how can i change
small parts of the form with javascript so it sends it date to the
right address for each row?

Thanks,
Andreas Heider


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to