Fórum

aui checkbox Liferay.Util.updateCheckboxValue(this); is not working in IE

thumbnail
Srikanth Shanigaram, modificado 8 Anos atrás.

aui checkbox Liferay.Util.updateCheckboxValue(this); is not working in IE

Junior Member Postagens: 55 Data de Entrada: 07/10/14 Postagens Recentes
Hi,
Today I found the default method of checkbox Liferay.Util.updateCheckboxValue(this); is not working in IE browser(checked in 10,9,8) but in other browsers it works fine.
So i used javascript to get the checkbox status. But i want to use pure AUI only.

Does liferay(AUI) have this bug ?

Regards,
Srikanth
thumbnail
Nate Cavanaugh, modificado 8 Anos atrás.

RE: aui checkbox Liferay.Util.updateCheckboxValue(this); is not working in

Junior Member Postagens: 94 Data de Entrada: 27/11/06 Postagens Recentes
Hi Srikanth,
Can you explain how it's not working? Are there any JS errors, any sort of behavior that is happening?

Thanks,
thumbnail
Srikanth Shanigaram, modificado 8 Anos atrás.

RE: aui checkbox Liferay.Util.updateCheckboxValue(this); is not working in

Junior Member Postagens: 55 Data de Entrada: 07/10/14 Postagens Recentes
HI,

I am not getting any JS exceptions.
For input checkbox internally it maintains one more hidden field to store status.This hidden field would be updated by Liferay.Util.updateCheckboxValue(this).
In case of IE browser the hidden field is not updated with this method. But in remaining browsers it is working fine.

aui checkbox generates below html with one hidden field.
Ex:

<span class="aui-field aui-field-choice"> <span class="aui-field-content"> 
<span class="aui-field-element aui-field-label-right"> 
    <input type="hidden" value="true" name="_3_archive-cbox" id="_3_id-archive">
     <input type="checkbox" value="true" onclick="Liferay.Util.updateCheckboxValue(this); " onchange="submitFormFrmCb(this);" name="_3_archive-cboxCheckbox" id="_3_id-archiveCheckbox" class="aui-field-input aui-field-input-choice"> 
</span> 
<label for="_3_id-archiveCheckbox" class="aui-choice-label"> Archive </label> 
</span>
 </span>


am i correct in understanding this checkbox behaviour?

Regards,
Srikanth