-
1. Re: rich:calendar onchanged/oninputchange does not work on IE 7
ilya_shaikovsky Jan 11, 2010 8:40 AM (in response to rodrigo.uchoa)onchanged and oninputchange, are not working correctly on IE 7
could you please clarify this more.cecked and seems fine for me.
-
2. Re: rich:calendar onchanged/oninputchange does not work on IE 7
rodrigo.uchoa Jan 12, 2010 11:36 AM (in response to ilya_shaikovsky)You're right. I messed up a little bit.
After further investigation, I realized that only the ONINPUTCHANGE event is not firing in IE7. When the user manually edit the input field with a new date, no event is fired. The ONCHANGED event on the other hand, is fired correctly when the user selects a new date with the mouse. For instance, try this example:
<rich:calendar onchanged="alert('onchanged');" oninputchange="alert('oninputchange');" label="Vigência" id="dataVigencia" value="#{transferirArquivoAction.dateTeste}" datePattern="dd/MM/yyyy" inputSize="7" enableManualInput="true"
oninputblur="mascaraData(this);" maxlength="10" oninputkeypress="return formataData(event, this);" firstWeekDay="0" showWeeksBar="false" todayControlMode="hidden" >
</rich:calendar>Run this code in IE7 and try to edit a new date manually. The alert 'oninputchange' will never run.
-
3. Re: rich:calendar onchanged/oninputchange does not work on IE 7
rodrigo.uchoa Jan 12, 2010 11:44 AM (in response to rodrigo.uchoa)Guys,
I already found out what the problem was. Some of the JS functions I was calling in 'oninputblur' and 'oninputkeypress' were interfering with the oninputchange event.
Regards!