Hello,
> object MyMarkupVar extends RequestVar[NodeSeq](NodeSeq.empty)
ah, that's much better then my solution. Thanks! :)
Maybe you could also write, how to submit a whole form using AJAX? :) So far my
attempts are futile.
I get an ajax request, but the value of the field isn't bound to the model.
Code of my snippet, without ajax (works):
bind("todo", chooseTemplate("addForm", "form", form),
"desc" -> todo.desc.toForm,
"submit" -> submit("New", checkAndSave))
)
With ajax (doesn't work):
ajaxForm(
bind("todo", chooseTemplate("addForm", "form", form),
"desc" -> todo.desc.toForm,
"submit" -> submit("New", checkAndSave))
)
Or:
bind("todo", chooseTemplate("addForm", "form", form),
"desc" -> todo.desc.toForm,
"submit" -> ajaxButton("New", () => {checkAndSave; reDraw()}))
)
--
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.