From: Peter Brant <peter.br...@gmail.com>
Date: Sun, 11 Sep 2011 17:46:05 +0200
Local: Sun, Sep 11 2011 11:46 am
Subject: Re: [Lift] form.ajax snippet and onsubmit attribute
Yeah, I noticed that too (Lift not copying attributes from the <form>
element). We ended up just using jQuery to install the necessary JS vs. letting Lift include an appropriate snippet. If you open a ticket and assign it to me, I'll fix this, but... what you're trying to do is a little trickier. As Diego noted, the Pete On Fri, Sep 9, 2011 at 12:51 PM, Kajo Marton <kajo.mar...@gmail.com> wrote:
> yes, of course. I hope it helps. I found out that any attributes(class, > onsubmit, postsubmit) are not 'copy' to final generated form element. > my html template: > <div class="lift:Users.signUp"> > <form class="signupForm lift:form.ajax" postsubmit="myPostFuntion();" > onsubmit="validateForm();" action=""> > ... > <input type="submit" id="signUpButton" value="Register" class="button" /> > </form> > </div> > generated Lift html code: > <form id="F1237878923479A0ER3E" action="javascript://" > ... > <input id="signUpButton" class="button" onclick="liftAjax.lift_uriSuffix = > </form> > and my backend class Users contains snippet signUp with designer friendly > ... > "#signUpButton" #> ( SHtml.ajaxSubmit("Register", () => {...}) ) > thanks a lot. > -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||