srikotesh
asked on
firefox compatability
i want to disable tab im using this code
document.getElementById('t abxyz').di sabled="tr ue";
it is working ie8 and it is not working in firefox10
any alternative solution for this?
document.getElementById('t
it is working ie8 and it is not working in firefox10
any alternative solution for this?
Can you elaborate a little. What do you mean by a "tab". What is the actual html element? Can you provide more context?
ASKER
<table cellpadding="0" cellspacing="0" width="780px" border="0">
<tr style="height:22px">
<td id="Testtab1ControlObjM" class="TabItemStyleOn" style="width:150px; height:22px;" onclick="tabClicked('Test' ,1,3);" align="center">General</td >
<td id="Testtab1ControlObjR" class="TabItemStyleOnOff" style="width:25px; height:22px;"></td>
<td id="Testtab2ControlObjM" name="Testtab2ControlObjM" class="TabItemStyleOff" style="width:130px;height: 22px;" onclick="tabClicked('Test' ,2,3);" align="center" >Medical</td>
<td id="Testtab2ControlObjR" name="Testtab2ControlObjR" class="TabItemStyleOffOff" style="width:25px; height:22px;"></td>
</tr>
</table>
document.getElementById('T esttab2Con trolObjM') .disabled = true;
document.getElementById('T esttab2Con trolObjR') .disabled = true;
im using like this it working in ie showing the tab in disable mode, but problem with ffox
<tr style="height:22px">
<td id="Testtab1ControlObjM" class="TabItemStyleOn" style="width:150px; height:22px;" onclick="tabClicked('Test'
<td id="Testtab1ControlObjR" class="TabItemStyleOnOff" style="width:25px; height:22px;"></td>
<td id="Testtab2ControlObjM" name="Testtab2ControlObjM"
<td id="Testtab2ControlObjR" name="Testtab2ControlObjR"
</tr>
</table>
document.getElementById('T
document.getElementById('T
im using like this it working in ie showing the tab in disable mode, but problem with ffox
Try this:
document.getElementById('T esttab2Con trolObjM') .removeAtt ribute("on click");
document.getElementById('T esttab2Con trolObjR') .removeAtt ribute("on click");
If you need to re-enable them do this:
document.getElementById('T esttab2Con trolObjM') .setAttrib ute("oncli ck", "tabClicked('Test',2,3);") ;
document.getElementById('T esttab2Con trolObjR') .setAttrib ute("oncli ck","tabCl icked('Tes t',2,3);") ;
document.getElementById('T
document.getElementById('T
If you need to re-enable them do this:
document.getElementById('T
document.getElementById('T
ASKER
yes this code is working fine but tab has to show disable mode
for that i added another line is there any alternative instead of that line
document.getElementById('T esttab2Con trolObjM') .style.col or='Gray'; document.getElementById('T esttab2Con trolObjM') .removeAtt ribute("on click");
document.getElementById('T esttab2Con trolObjR') .removeAtt ribute("on click");
for that i added another line is there any alternative instead of that line
document.getElementById('T
document.getElementById('T
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.