Hello,

I have a regular form, which is submitted with a POST (no AJAX here yet). The 
form contains a list, to which you can add and remove elements using AJAX. So 
the add and remove buttons are:

"add" -> ajaxButton("Add element", () => { elements += new Element; reDraw })

The "reDraw" method is a SetHtml for the whole form. Now this almost works, 
with the exception that when I press the "add" button all other changes in the 
form are discarded, as the form is not submitted. So, when the button is 
pressed, I would need to submit the form using ajax and execute a given 
function on the server. In the archives I found SHtml.submitAjaxForm(formId) 
method, which I guess does what I need, but I don't know how to combine it with 
an ajaxButton?

-- 
Thanks,
Adam
-- 
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.


Reply via email to