Regards,
Diego
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/liftweb/-/xZLOPAlXXfkJ.
> To post to this group, send email to lif...@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
--
Diego Medina
Web Developer
di...@fmpwizard.com
http://www.fmpwizard.com
<form id="F1237878923479A0ER3E" action="javascript://" onsubmit="liftAjax.lift_ajaxHandler(jQuery('#'+"F1237878923479A0ER3E").serialize(), null, null, "javascript");return false;">
...
<input id="signUpButton" class="button" onclick="liftAjax.lift_uriSuffix = 'zF12378789234784PJV2Y=_'; return true;" name="zF12378789234784PJV2Y" type="submit" value="Register"></form>and my backend class Users contains snippet signUp with designer friendly templates and..."#signUpButton" #> ( SHtml.ajaxSubmit("Register", () => {...}) )
thanks a lot.
Hi,
Ok, so, is it calling validate now? ( because I see an onsubmit attr
on the resulting hyml. just not what you entered.
Diego
> <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://"
> onsubmit="liftAjax.lift_ajaxHandler(jQuery('#'+"F1237878923479A0ER3E").serialize(),
> null, null, "javascript");return false;">
>
> ...
>
> <input id="signUpButton" class="button" onclick="liftAjax.lift_uriSuffix =
> 'zF12378789234784PJV2Y=_'; return true;" name="zF12378789234784PJV2Y"
> type="submit" value="Register">
>
> </form>
>
> and my backend class Users contains snippet signUp with designer friendly
> templates and
>
> ...
>
> "#signUpButton" #> ( SHtml.ajaxSubmit("Register", () => {...}) )
>
>
> thanks a lot.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/liftweb/-/NKQQGKxpZfsJ.
what you're trying to do is a little trickier. As Diego noted, the
form.ajax snippet wires up onsubmit to do an Ajax submit of the form,
but you want to perform some custom validation using the same event
handler. I'm not sure of the cleanest way to handle this. Any ideas?
Pete
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/liftweb/-/NKQQGKxpZfsJ.
Pete
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/liftweb/-/jdkp8h1wwSUJ.