[web2py] Javascript event onchange with Calendar

2013-11-05 Thread José Luis Redrejo
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.

Re: [web2py] Javascript event onchange with Calendar

2013-11-05 Thread Diogo Munaro
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(){}); 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

Re: [web2py] Javascript event onchange with Calendar

2013-11-05 Thread José Luis Redrejo
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:

Re: [web2py] Javascript event onchange with Calendar

2013-11-05 Thread Diogo Munaro
No jose, try use .on instead of .change as the example 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,

Re: [web2py] Javascript event onchange with Calendar

2013-11-05 Thread José Luis Redrejo
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