Any Python in your app, whether in a controller or view, will be executed 
on the server, as the browser cannot execute Python. If you want things to 
happen dynamically on the page in the browser without loading a new page, 
then you can use Javascript or make Ajax calls to get new HTML content from 
the server.

Anthony

On Tuesday, July 7, 2015 at 5:40:39 PM UTC-4, Phillip wrote:
>
> I am having trouble finding anything definitive here. Please help if you 
> have any input, even if short.
>
>
> My goal is to prevent the server from doing the python processing. 
>
>
> Is this incorrect?: 
>
> If running the python in the controller function (instead of embedding as 
> JS), the server will do the processing
>
>
> Since python functions need to be used in the view for client processing, 
> is there an elegant way to call the python methods in the page? Could you 
> give me an example of a good way to do this with a large script? i.e. 
> returning methods or scripts from the controller, using AJax, etc.
>
>  Am I on the right track?
>
>
> Thanks,
>
>
> Phillip K
>

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