You cannot, as Python code is executed on the server *before* the page ever gets to the browser. If you need to execute Javascript code based on user input and need some data from the server as a result, you must make an Ajax request.
Anthony On Wednesday, June 1, 2016 at 3:04:46 PM UTC-4, [email protected] wrote: > > how can I pass a javascript variable to web2py code in view > > {{=db(db.TableName).select(db.FieldName==this.value)}} - something like > this > > this.value is coming from JQuery each iteration > -- 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.

