Review Board 1.5.4

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 :) ).
Ship it!
Posted 2 years, 3 months ago (October 30th, 2009, 1:57 p.m.)
Looks good.  Please merge it in post M7
  1. Is it OK to merge this in now, or should I wait until after this next milestone?
Review request changed
Updated 2 years, 3 months ago (October 30th, 2009, 1:58 p.m.)
Deprecated the naughty ajaxForm(JsCmd,NodeSeq) method.
Ship it!
Posted 2 years, 3 months ago (October 30th, 2009, 2:56 p.m.)
Cool