[web2py] Re: LOAD with ajax=False fails to pass vars

2011-06-10 Thread Massimo Di Pierro
This helps. I think I understand now and should be able to fix it tonight. On Jun 10, 1:54 pm, apple wrote: > Basically same as previous poster: > > View: > > {{extend 'layout.html'}} > {{=LOAD(f='test.html', args=[1,2,3], vars=dict(x=1,y=2), ajax=False, > ajax_trap=True)}} > > Controller: > > de

[web2py] Re: LOAD with ajax=False fails to pass vars

2011-06-10 Thread apple
Basically same as previous poster: View: {{extend 'layout.html'}} {{=LOAD(f='test.html', args=[1,2,3], vars=dict(x=1,y=2), ajax=False, ajax_trap=True)}} Controller: def test(): print("test") print request.args print request.vars print("end test") return I call it with contr

[web2py] Re: LOAD with ajax=False fails to pass vars

2011-06-10 Thread Anthony
Can you show your code? On Friday, June 10, 2011 10:53:50 AM UTC-4, apple wrote: > This does not seem to work for me even with ajax_trap=True. > > On May 12, 7:24 pm, pbreit wrote: > > Still didn't work in trunk. "ajax_trap=True" makes it work. But that > > shouldn't be necessary, correct?

[web2py] Re: LOAD with ajax=False fails to pass vars

2011-06-10 Thread apple
This does not seem to work for me even with ajax_trap=True. On May 12, 7:24 pm, pbreit wrote: > Still didn't work in trunk. "ajax_trap=True" makes it work. But that > shouldn't be necessary, correct?

[web2py] Re: LOAD with ajax=False fails to pass vars

2011-05-12 Thread pbreit
Still didn't work in trunk. "ajax_trap=True" makes it work. But that shouldn't be necessary, correct?

[web2py] Re: LOAD with ajax=False fails to pass vars

2011-05-12 Thread Anthony
On Thursday, May 12, 2011 1:48:53 PM UTC-4, pbreit wrote: > > Yeah, looks like it's not passing args and vars when ajax=False. I'm on > trunk. The code looks like it should be passing args (though not vars, unless ajax_trap=True) -- are you sure it's not passing args when ajax=False? Anthon

[web2py] Re: LOAD with ajax=False fails to pass vars

2011-05-12 Thread Anthony
You might need to set ajax_trap=True in order to pass vars to the component -- otherwise, I think it will just ignore your vars and use request.vars instead. Anthony On Thursday, May 12, 2011 1:12:55 PM UTC-4, Rohan wrote: > web2py version: Version 1.92.1 (2011-02-16 15:04:40) > > LOAD is fai

[web2py] Re: LOAD with ajax=False fails to pass vars

2011-05-12 Thread Massimo Di Pierro
I just made a couple of changed in trunk to that function. Can you see if the problem is still there? On May 12, 12:12 pm, Rohan wrote: > web2py version: Version 1.92.1 (2011-02-16 15:04:40) > > LOAD is failing to pass request.vars when ajax is set to False but passed > vars when ajax is set to T

[web2py] Re: LOAD with ajax=False fails to pass vars

2011-05-12 Thread pbreit
Yeah, looks like it's not passing args and vars when ajax=False. I'm on trunk.