In typical IE fashion the error offers little to no help. The code isn't complex, perhaps one of you JS guru's can help me fix it up (this is actually php script, so don't mind the \" and $'s. All this is supposed to do is swap the buttons when the checkbox is checked. Works fine in every browser I have installed except IE which tosses up the ever so helpful title error. Thanks for looking.
HTML:
Javascript:Code:<tr bgcolor=$rowcolor> <td align=center colspan=6> <input type=checkbox name='complete' onClick=\"show_button();\"> Complete Report and Send for Final Sign Off </td> </tr> <tr bgcolor=$rowcolor id='complete_button' style=\"display:none\"> <td align=center colspan=6> <input type=submit name='sub_state' value='Complete Report'> </td> </tr> <tr bgcolor=$rowcolor id='preview_button'> <td align=center colspan=6> <input type=submit name='sub_state' value='Preview Report'> </td> </tr>
Code:function show_button() { if(document.report_form.complete.checked==true) { document.report_form.getElementById('preview_button').style.display="none"; document.report_form.getElementById('complete_button').style.display=""; } else { document.report_form.getElementById('preview_button').style.display=""; document.report_form.getElementById('complete_button').style.display="none"; } }


Reply With Quote

Bookmarks