I am not sure that is the problem. ajax_trap does not trap ajax
requests but form submissions. I need to give this a try.

Massimo



On Apr 5, 8:15 pm, Thadeus Burgess <thade...@thadeusb.com> wrote:
> Maybe the web2py_ajax_trap can have a write-through put in so it will
> not intercept communications for recaptcha?
>
> -Thadeus
>
> On Mon, Apr 5, 2010 at 5:28 PM, selecta <gr...@delarue-berlin.de> wrote:
> > tnx Thadeus
>
> > just foundhttp://recaptcha.net/apidocs/captcha/client.html
> > reCAPTCHA AJAX API
>
> > will read into it 2morrow
> > would be nice if recaptcha works with web2pys ajax things by default
>
> > On Apr 6, 12:10 am, Thadeus Burgess <thade...@thadeusb.com> wrote:
> >> It is because recaptcha uses ajax to communicate, and when using LOAD
> >> web2py traps all ajax calls, so the recaptcha requests are not making
> >> it to the server.
>
> >> -Thadeus
>
> >> On Mon, Apr 5, 2010 at 5:05 PM, selecta <gr...@delarue-berlin.de> wrote:
> >> > I tried to use Recaptcha in a LOAD div but I does not work
>
> >> > The problem is that the page stats reloading when it gets to the div
> >> > loaded with LOAD where the recaptcha javascripts are in and gets stuck
> >> > on reloading it
>
> >> > controller:
> >> > ...
> >> > form = SQLFORM.factory(Field('tag_name'))
> >> > captcha = None
> >> > if not auth.user:
> >> >    captcha = Recaptcha(request,'xxx','xxx')
> >> >    form[0].append(captcha)
> >> > if request.vars.tag_name:
> >> >   ....
> >> >   if form.accepts(request.vars, session):
> >> >        ...
> >> > return dict(form=form, captcha = captcha)
>
> >> > view tag.html:
> >> > {{=form.custom.begin}}
> >> > ...
> >> > {{=captcha}}
> >> > {{=form.custom.end}}
> >> > {{pass}}
>
> >> > view default.html:
> >> > LOAD('default','tag',args=(table_name,record_id),ajax=True) <- does
> >> > not work
>
> >> > but with
> >> > LOAD('default','tag',args=(table_name,record_id))
> >> > at least the page loads
>
> >> > --
> >> > You received this message because you are subscribed to the Google 
> >> > Groups "web2py-users" group.
> >> > To post to this group, send email to web...@googlegroups.com.
> >> > To unsubscribe from this group, send email to 
> >> > web2py+unsubscr...@googlegroups.com.
> >> > For more options, visit this group 
> >> > athttp://groups.google.com/group/web2py?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "web2py-users" group.
> > To post to this group, send email to web...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > web2py+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/web2py?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to