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
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
>
> How can I catch rows in Javascript code ?
>
What does this mean? Can you give an example?
--
3 matches
Mail list logo