[Lift] Re: ajaxForm with mapped function

2009-08-12 Thread jon
Thanks Dave, I explored both of those routes. The hidden field would allow me to execute on the server, but not send back JS to execute on the client. The ajaxButton would allow me to execute code on the client, but not submit the form (unless I put the form serialize code in the button?). I

[Lift] Re: ajaxForm with mapped function

2009-08-12 Thread David Pollak
On Wed, Aug 12, 2009 at 8:14 AM, jon jonhoff...@gmail.com wrote: Thanks Dave, I explored both of those routes. The hidden field would allow me to execute on the server, but not send back JS to execute on the client. The ajaxButton would allow me to execute code on the client, but not

[Lift] Re: ajaxForm with mapped function

2009-08-12 Thread jon
That is surprising... revised function: def ajaxForm(body: NodeSeq,func: ()=JsCmd) = { SHtml.ajaxForm(body ++ SHtml.hidden(func)) } very cool! thanks, - jon On Aug 12, 11:51 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Aug 12, 2009 at 8:14 AM, jon

[Lift] Re: ajaxForm with mapped function

2009-08-11 Thread David Pollak
On Tue, Aug 11, 2009 at 3:31 PM, jon jonhoff...@gmail.com wrote: Hi, I'm not sure if this behavior already exists via some other mechanism, but I wanted an ajaxForm that executed a JsCmd sent from the sever after submit. Here it is: def ajaxForm(body: NodeSeq,func: ()=JsCmd) = {