[web2py] Re: how do you put a JavaScript variable in a python variable

2011-05-06 Thread ron_m
In a typical view file you have to think about where the execution will occur. The Python code in the view will run on the server as part of the page generation process, the page is shipped out to the user's browser as the response and will be HTML and Javascript and the Javascript that possibl

[web2py] Re: how do you put a JavaScript variable in a python variable

2011-05-06 Thread pbreit
I suppose you could do this but I'm not really sure why you'd want to. What are you trying to do? {{js = XML("alert('Hello.');")}} {{=js}}