Add the ability to execute JavaScript on the client after a successful AJAX form submission
Updated 2 years, 2 months ago
| Derek Chen-Becker | Reviewers | ||
| 148 | dchenbecker, dpp, marius, charles, joni, atsuhiko, jorge, naftoli, kris, indrajit, alexb | ||
| None | LiftWeb-archive | ||
This adds a new method to SHtml, and indirectly a new attribute to <lift:form />. def ajaxForm(body : NodeSeq, onSubmit : JsCmd, postSubmit : JsCmd) <lift:form postsubmit="..." /> After the form has been successfully submitted, the postsubmit code will be executed.
On my local test app (and soon LiftTicket :) ).
Looks good. Please merge it in post M7
Review request changed
Updated 2 years, 3 months ago (October 30th, 2009, 1:58 p.m.)
-
- added Diff r2
Deprecated the naughty ajaxForm(JsCmd,NodeSeq) method.
