You can't do that, because of recent changes in web2py.js source code by 
niphlod. The 'calendar' js does have a method that would work after the 
date was changed.
https://github.com/web2py/web2py/commit/cd30382c0ebefeeef1149214acb36e5fd6c93469#diff-51450f2685f2ecf74b1835b4fc2bc16cR182
(see line 182 - he specifically sets the 'onChange' of the input.datetime)

To do that, you need to modify the web2py.js file, line 188 which sets up 
the calendar - you have to add your callback. In the setup you need to 
define what 'onUpdate' does.
See the documentation to the calendar widget used here:
https://wiki.umn.edu/pub/TWiki/JSCalendarContrib/doc/html/reference.html


On Tuesday, November 5, 2013 10:51:53 AM UTC-7, José L. wrote:
>
> Hi, 
> I'm having problems with the Calendar used for date fields in an SQLFORM. 
> In the web page, the javascript onchange does never happen (tested 
> with Firefox and Google chrome). Other events like click or focusout 
> works correctly, and other fields with other text input widgets work 
> correctly too. 
>
> Is there any way to handle when the user  changes the date after 
> clicking on a calendar day? 
>
> Thanks 
> José L. 
>

-- 
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/groups/opt_out.

Reply via email to