Re: [Lift] Re: A better approach to ajax forms?

2010-01-21 Thread Kris Nuttycombe
Okay, I think I may have found a bug. My returned content contains unescaped braces. In one failure case (this is parsing a DSL) I was testing a parse of a missing end brace - and part of the error message is the original text passed in (with mismatched braces). Figured it out by passing in conte

Re: [Lift] Re: A better approach to ajax forms?

2010-01-21 Thread David Pollak
On Thu, Jan 21, 2010 at 4:04 PM, Kris Nuttycombe wrote: > On Thu, Jan 21, 2010 at 4:36 PM, Kris Nuttycombe > wrote: > > On Thu, Jan 21, 2010 at 2:43 PM, Marius wrote: > >> > >> > >> On Jan 21, 11:15 pm, Kris Nuttycombe > >> wrote: > >>> On Thu, Jan 21, 2010 at 12:23 PM, Marius > wrote: > >>> >

Re: [Lift] Re: A better approach to ajax forms?

2010-01-21 Thread Kris Nuttycombe
On Thu, Jan 21, 2010 at 4:36 PM, Kris Nuttycombe wrote: > On Thu, Jan 21, 2010 at 2:43 PM, Marius wrote: >> >> >> On Jan 21, 11:15 pm, Kris Nuttycombe >> wrote: >>> On Thu, Jan 21, 2010 at 12:23 PM, Marius wrote: >>> > Instead of >>> >>> >  "submit" -> SHtml.submit("Parse", () => ()) >>> >>> >

Re: [Lift] Re: A better approach to ajax forms?

2010-01-21 Thread Kris Nuttycombe
On Thu, Jan 21, 2010 at 2:43 PM, Marius wrote: > > > On Jan 21, 11:15 pm, Kris Nuttycombe > wrote: >> On Thu, Jan 21, 2010 at 12:23 PM, Marius wrote: >> > Instead of >> >> >  "submit" -> SHtml.submit("Parse", () => ()) >> >> > use: >> >> >  "submit" -> SHtml.ajaxSubmit("Parse", () => ()) >> >> >

Re: [Lift] Re: A better approach to ajax forms?

2010-01-21 Thread Kris Nuttycombe
On Thu, Jan 21, 2010 at 2:43 PM, Marius wrote: > > > On Jan 21, 11:15 pm, Kris Nuttycombe > wrote: >> On Thu, Jan 21, 2010 at 12:23 PM, Marius wrote: >> > Instead of >> >> >  "submit" -> SHtml.submit("Parse", () => ()) >> >> > use: >> >> >  "submit" -> SHtml.ajaxSubmit("Parse", () => ()) >> >> >

[Lift] Re: A better approach to ajax forms?

2010-01-21 Thread Marius
On Jan 21, 11:15 pm, Kris Nuttycombe wrote: > On Thu, Jan 21, 2010 at 12:23 PM, Marius wrote: > > Instead of > > >  "submit" -> SHtml.submit("Parse", () => ()) > > > use: > > >  "submit" -> SHtml.ajaxSubmit("Parse", () => ()) > > > you can also send normal forms via ajax like: > > > SHtml.submi

Re: [Lift] Re: A better approach to ajax forms?

2010-01-21 Thread Kris Nuttycombe
On Thu, Jan 21, 2010 at 12:23 PM, Marius wrote: > Instead of > >  "submit" -> SHtml.submit("Parse", () => ()) > > use: > >  "submit" -> SHtml.ajaxSubmit("Parse", () => ()) > > you can also send normal forms via ajax like: > > SHtml.submitAjaxForm("formId", () => { > >  /// Do your stuff here. This

Re: [Lift] Re: A better approach to ajax forms?

2010-01-21 Thread Naftoli Gugenheim
Those names seem counterintuitive to me. ajaxSubmit submits an ajax form but submitAjaxForm submits a non-ajax form? submitAjaxForm implies that it should be the reverse, no? - Marius wrote: Instead of "submit" -> SHtml.submit("Parse", () => ()) use: "su

[Lift] Re: A better approach to ajax forms?

2010-01-20 Thread Kris Nuttycombe
On Wed, Jan 20, 2010 at 9:51 AM, Kris Nuttycombe wrote: > On Wed, Jan 20, 2010 at 9:39 AM, Kris Nuttycombe > wrote: >> Hi, all, >> >> I'm working on an AJAX form and feel like I'm missing something: >> namely, how to update the page based upon the result of the form >> submission. >> >> The three

[Lift] Re: A better approach to ajax forms?

2010-01-20 Thread Kris Nuttycombe
On Wed, Jan 20, 2010 at 9:39 AM, Kris Nuttycombe wrote: > Hi, all, > > I'm working on an AJAX form and feel like I'm missing something: > namely, how to update the page based upon the result of the form > submission. > > The three ajaxForm methods in SHtml have the following signatures: > > def aj