Well, I can't say if it's a bug or not, Niphlod would be able to determine 
that. He made the change to fix something. I can't find an issue that 
corresponds with this change though.

The only thing I could suggest then is to use the calendar setup yourself, 
and instead of adding the web2py.js automatically in layout.html, remove 
that and load it yourself in your view before you load your javascript to 
set the calendar up.

On Wednesday, November 6, 2013 11:05:47 AM UTC-7, José L. wrote:
>
> Derek, thank you for the info. I could not guess it was so 
> complicated. I don't like to modify files that are part of the 
> framework as they will change with future updates. 
> Don't you think this is a bug that should be fixed in web2py? 
>
> 2013/11/6 Derek <[email protected] <javascript:>>: 
> > 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] <javascript:>. 
> > For more options, visit https://groups.google.com/groups/opt_out. 
>

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