I only posted part of the code from the view that is giving me problems, 
which uses *response.json*. The code i posted reads variables sent from the 
controller into a JavaScript format, these variables are then used by an 
external JavaScript file associated with the same view to render some 
charts and what not. It is the only way I know how to pass the results 
generated from the controller to an external JavaScript file, perhaps there 
is a better method?

Either way, I have isolated the problem to the latest version of web2py 
(2.9.12), this problem does not occur in 2.9.11,  I just tested it with the 
old version on my new machine. So this means that the only reason it works 
on the server (pythonanywhere) is probably because they are running the 
older version, as soon as they upgrade I'll probably have the same problem!

On Monday, March 23, 2015 at 3:13:43 AM UTC-4, Nico de Groot wrote:
>
> Why is the HTML rendered inside a script tag? 

-- 
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.

Reply via email to