[Lift] Re: How to execute JsCmd after submit

2010-02-27 Thread sdillard
ok - thanks -- that makes sense and works. On Feb 26, 2:35 pm, Marius wrote: > Well it looks like you are submitting a non ajax form. You can easily > use ajax forms. > > something like: > >   def calcForm(xhtml:NodeSeq):NodeSeq = { >     SHtml.ajaxForm(Helpers.bind("f", xhtml, >       "age" -> S

[Lift] Re: How to execute JsCmd after submit

2010-02-26 Thread Marius
Well it looks like you are submitting a non ajax form. You can easily use ajax forms. something like: def calcForm(xhtml:NodeSeq):NodeSeq = { SHtml.ajaxForm(Helpers.bind("f", xhtml, "age" -> SHtml.text(ageVar.is.toString, v => ageVar(v.toInt)), "male" -> SHtml.text(maleVar.is.t