2013/11/6 Diogo Munaro <diogo.mvie...@gmail.com>: > No jose, try use .on instead of .change as the example >
I tried it too, without success. > Em 05/11/2013 16:19, "José Luis Redrejo" <jredr...@gmail.com> escreveu: > >> 2013/11/5 Diogo Munaro <diogo.mvie...@gmail.com>: >> > Hi josé, you tried handle onchange with jquery on function? Phehaps some >> > js >> > after declared is changing you handle. So, try: >> > >> > $(item).on("change", function(){}); >> > >> >> >> Yes, and it doesn't work. In fact this is part of my code: >> >> jQuery("#CabeceraEntrada_Fecha").change(function() { >> set_parametros('fecha',jQuery(this)); >> }); >> >> jQuery("#CabeceraEntrada_tipoProcedencia").change(function() { >> set_parametros('procedencia',jQuery(this)); >> }); >> >> jQuery('#CabeceraEntrada_Codigo').change(function(){ >> set_parametros('codigo',jQuery(this)); >> }); >> >> #CabeceraEntrada_Codigo is a normal text input (integer datafield), >> #CabeceraEntrada_tipoProcedencia is a select (IS_IN_SET datafield >> requirement) and #CabeceraEntrada_Fecha is a text input with calendar >> (date datafield). >> With the same code, they all execute set_parametros function, >> excepting #CabeceraEntrada_Fecha >> >> >> >> >> >> >> > Em 05/11/2013 15:52, "José Luis Redrejo" <jredr...@gmail.com> escreveu: >> >> >> >> 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 web2py+unsubscr...@googlegroups.com. >> >> 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 web2py+unsubscr...@googlegroups.com. >> > 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 web2py+unsubscr...@googlegroups.com. >> 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 web2py+unsubscr...@googlegroups.com. > 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.