I have a table in which each row represents an object in the database,
with each cell in the row an input bound to an attribute of the object.
I want to be able to add rows (with new, blank objects) and delete rows
(deleting both the row on the page and the associated object in the
database).
I've set up a snippet method to insert a new row. It returns the table
row with all the inputs nicely bound. How do I call this with AJAX and
insert the NodeSeq into the current table?
At the end of the row I have a [-] ajaxButton. It should delete that row
and the associated object using AJAX, but when I click it, the page
reloads and nothing changes.
I've looked through the jQuery Lift stuff. Am I using the ajaxButton
wrong? Why would the page reload? And what methods are appropriate to
both updating an object (Model.remove(obj)) and deleting the row
($('#rowid').remove())?
Any help appreciated.
Chas.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" 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/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---