Re: [web2py] javascript and python in views

2016-01-15 Thread Manuele Pesenti
Il 15/01/16 15:00, Pierre ha scritto: > the script mixes javascript and python expressions. How does > javascript understand python ? Is this documented in the web2py book ? In this case js does not have nothing to understand from python... you've got simply two different scripts to be executed cl

[web2py] javascript and python in views

2016-01-15 Thread Pierre
Hi, I found this piece of code in views/user.html: {{block page_js}} jQuery("#web2py_user_form input:visible:enabled:first").focus(); {{if request.args(0)=='register':}} web2py_validate_entropy(jQuery('#auth_user_password'),100); {{elif request.args(0)=='change_password':}} web2py_va