Hi Fabio, no I'm italian.

Sorry for not being clear,

Before checking, I've stopped the form submit process. The handler
makes an ajax request, then based on the response I want to continue
submitting the form, but I don't understand how to do it (I'm just
starting out with mootools).

I tried $('myForm').send(); but it doesn't seem to work, is it the
correct way to do that?


On Mar 29, 3:19 pm, Fábio M. Costa <[email protected]> wrote:
> Are you having any problem or your just asking for the best way to do it?
> If theres currently an error, tell us where it is.
>
> Are you Brazilian?
>
> Cya.
>
> --
> Fábio Miranda Costa
> Solucione Sistemas
> Engenheiro de interfaces
>
>
>
> On Mon, Mar 29, 2010 at 10:01 AM, Flavio <[email protected]> wrote:
> > Hi, I'm trying to check the user registration using the reCAPTCHA
> > human-verification tool.
>
> > I check it using JSON, then if the result is ok I go on with the form
> > submit, creating the user.
>
> > Could you suggest how can I continue the form submission during the
> > event handler?
>
> > onSuccess : function (result) {
> >   if(result == true) {
> >      $('myForm').send();
> >   }
> > }
>
> > This is the code I'm using:
>
> > <script type="text/javascript">
>
> >        window.addEvent('domready', function() {
>
> >                $$('input.button').addEvent('click', function(e) {
> >                        e.stop();
>
> >                           var challenge = Recaptcha.get_challenge();
> >                           var response = Recaptcha.get_response();
>
> >                        var request = new Request.JSON({
> >                                url: 'checker.php',
> >                                data : {
> >                                    recaptcha_challenge_field : challenge,
> >                                    recaptcha_response_field : response
> >                                },
> >                                method: 'get',
> >                                onSuccess : function (result) {
> >                                    if(result == true) {
> >                                        $('myForm').send();
> >                                    } else {
> >                                        Recaptcha.reload();
> >                                    }
> >                                }
> >                        }).send();
> >                });
> >        });
> > </script>
>
> > To unsubscribe from this group, send email to mootools-users+
> > unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> > ME" as the subject.

To unsubscribe from this group, send email to 
mootools-users+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to