Another hopefully quick question. There are two ajaxForm signatures that are identical except for the argument order:
def ajaxForm(onSubmit: JsCmd, body: NodeSeq) = (<lift:form onsubmit={onSubmit.toJsCmd}>{body}</lift:form>) def ajaxForm(body: NodeSeq, onSubmit: JsCmd) = (<lift:form onsubmit={onSubmit.toJsCmd}>{body}</lift:form>) I'm just wondering why it's like this and if we should deprecate one or the other... Thanks, Derek On Fri, Oct 30, 2009 at 1:29 PM, Derek Chen-Becker <dchenbec...@gmail.com>wrote: > I'll open a ticket and start working on the issue. > > Derek > > > On Fri, Oct 30, 2009 at 11:46 AM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> Sounds like a good idea. >> >> >> On Fri, Oct 30, 2009 at 10:03 AM, Derek Chen-Becker < >> dchenbec...@gmail.com> wrote: >> >>> Hi, >>> I'm working on a simple mixin trait that you can add to a MappedField >>> to make it editable AJAX-style (like how Review Board does it). My first >>> approach is to use an ajaxButton to allow the user to edit the field, and >>> then use ajaxForm to handle submission of the data back so that the Mapper >>> data can be updated. What I would like to do is have the form get replaced >>> by the display HTML after form submission, but I don't see a simple way to >>> do this with the existing methods. Currently, ajaxForm has an onSubmit param >>> that allows some JavaScript to be executed before the form is submitted, but >>> it would be nice if something could be executed after the submit completes >>> to update things on the client side. Does this seem like a reasonable >>> approach, or does someone have a better idea? >>> >>> Thanks, >>> >>> Derek >>> >>> >>> >> >> >> -- >> Lift, the simply functional web framework http://liftweb.net >> Beginning Scala http://www.apress.com/book/view/1430219890 >> Follow me: http://twitter.com/dpp >> Surf the harmonics >> >> >> >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---