Forums de discussion
aui checkbox Liferay.Util.updateCheckboxValue(this); is not working in IE
Srikanth Shanigaram, modifié il y a 8 années.
aui checkbox Liferay.Util.updateCheckboxValue(this); is not working in IE
Junior Member Publications: 55 Date d'inscription: 07/10/14 Publications récentes
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
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
Nate Cavanaugh, modifié il y a 8 années.
RE: aui checkbox Liferay.Util.updateCheckboxValue(this); is not working in
Junior Member Publications: 94 Date d'inscription: 27/11/06 Publications récentes
Hi Srikanth,
Can you explain how it's not working? Are there any JS errors, any sort of behavior that is happening?
Thanks,
Can you explain how it's not working? Are there any JS errors, any sort of behavior that is happening?
Thanks,
Srikanth Shanigaram, modifié il y a 8 années.
RE: aui checkbox Liferay.Util.updateCheckboxValue(this); is not working in
Junior Member Publications: 55 Date d'inscription: 07/10/14 Publications récentes
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:
am i correct in understanding this checkbox behaviour?
Regards,
Srikanth
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