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 failing to pass request.vars when ajax is set to False but passed > vars when ajax is set to True. I want certain component to load before page > finish loading so need to set ajax= False. I tried this call in > default/index.html > > {{=LOAD(c='default', f='testcall', args=request.args, vars={'x':1}, > ajax=False)}} > > with controller code > def testcall(): > print request.vars > return > > output with *ajax=True* > <Storage {'x': '1'}> > > but with *ajax=False* > *<Storage {}> > * > * > * > is there something that I am missing? >