mmm... maybe you are looking for ASSIGNJS(js_var=python_list) ????
It depends on the way you want to do whatever you wanna do :)
if you get the name of the list is because you *return
dict(your_list=your_list)* and in the view you have* {{=your_list}} *you
need to *return ASSIGNJS(my_js_var=your_list}}* and in the view you can
manage my_js_var with javascript.
But you can use the other case instead of ':eval' that will return the view
you have for that controller, inside a div and then represent the
information as you want and with your own js script for that view.
El martes, 30 de mayo de 2017, 14:46:08 (UTC+2), [email protected]
escribió:
>
>
> In my controller, i have a list which i called tools which containes
> values.
>
> I would like to return this list like you said.
>
> In my view i would like to retrieve the value and to put the values inside
> variable( with loop i think)
>
> But when i put eval and i call the function javascription from the
> controler : the name of the list is displayed ( it takes the string and not
> the content :'( )
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.