In server side when rendering the view you use python vars with
{{=my_python_var}}
If you are asking how to use a python var in client side with javascript
you can use ASSIGNJS(js_var=python_var)
Take a look at the files I uploaded before.
def mycontroller():
.
return ASSIGNJS(js_v
I totally agree with that but then how do you use that list in the view as
a python variable ???
Le jeudi 1 juin 2017 09:09:15 UTC+2, Junior Phanter a écrit :
>
>
> var list_sunda = "";
> ajax("your_echo_url", [], ':eval');
>
>
> def echo_url():
> list_sunda=[1,2,3,4,5]
> return "list_
var list_sunda = "";
ajax("your_echo_url", [], ':eval');
def echo_url():
list_sunda=[1,2,3,4,5]
return "list_sunda=%s;" %list_sunda
2017-06-01 3:49 GMT-03:00 :
> Hey paco,
>
> the problem is that i am using script, so the the action in the controller
> is a callback, it means that it d
3 matches
Mail list logo