You cannot in the page that calls web2py but you can do it 'mydata.load'
On Sep 30, 6:17 pm, Relaxd <[email protected]> wrote: > I'm a web2py newbie. I have some data that gets updated constantly. I > used the following code to load the data via ajax every few seconds. > The data is updated as expected automatically. But I have no access to > the response vars in the view to process the data. Is it possible for > me to access response data in the view. I'd like to do something like > {{for x in data:}} etc. > > <script> > function load_tables() { > //load data > web2py_component('{{=URL('mydata.load')}}','tabdata'); > setTimeout(load_mydata,10000); > > } > > jQuery(document).ready(load_tables); > > </script> > > <div id="tabdata"> > {{=response.vars}} > </div> > > Thanks > Prad

