Re: [web2py] Re: Catch rows in Javascript

2012-08-19 Thread Mathias Van Daele
Hello Alan, Anthony Thanks both for your reply !!! In the meantime I also discovered that I have to use JSON for this specific situation. I did it like this : *Controller :* def locations(): locations=db(db.value.cat==2).select().*as_list()* import gluon.contrib.simplejson return g

[web2py] Re: Catch rows in Javascript

2012-08-19 Thread Alan Etkin
Do you want to access DAL Row objects in the browser with javascript? I think that the simplest way is to convert a Rows object to dict and do a json dump of it, then assign the data to a js variable in the view controller import simplejson myrows = db(query).select().as_dict() return dict(data

[web2py] Re: Catch rows in Javascript

2012-08-17 Thread Anthony
> > How can I catch rows in Javascript code ? > What does this mean? Can you give an example? --