Re: [web2py] how to quit ajax LOAD loop

2016-11-23 Thread Niphlod
if you add "w2p_component_stop" as a class to the element, the cycle will be interrupted. On Wednesday, November 23, 2016 at 4:50:47 PM UTC+1, Richard wrote: > > Did you try ajax_trap=False > > Or you can redirect by specifying the extension='html' if it does work, so > you can redirect once for

Re: [web2py] how to quit ajax LOAD loop

2016-11-23 Thread Richard Vézina
Did you try ajax_trap=False Or you can redirect by specifying the extension='html' if it does work, so you can redirect once form is accepted. Richard On Wed, Nov 23, 2016 at 9:50 AM, Pierre wrote: > Hi, > > i wrote this in a view : > > > {{=LOAD('default','ustat.load', args=[k], tar

[web2py] how to quit ajax LOAD loop

2016-11-23 Thread Pierre
Hi, i wrote this in a view : {{=LOAD('default','ustat.load', args=[k], target='pcustat', ajax=True,times=10, timeout=5000, content=T('loading...'))}} I want to quit the LOAD loop when *ustat *returns 'OK' response.js = "jQuery('#pcustat').remove();" generates a w