YogeshPancholi
Programmer
I am a Netscape Neophite, so please excuse me if my question has a very obvious answer.
I have developed an HTML page in IE that consists of a form whose input field and label name are contained in separate cells of a table. On clicking submit, my JavaScript performs client-side validation, and if it encounters any input errors, the label text becomes red, and an error message is posted at the bottom of the page.
My question is how can I get the page to behave identically in Netscape? Below is a small sample of my HTML for clarity.
<BODY>
<FORM>
<TABLE>
<TR>
<TD id="tdName" class="colorBlack">First Name:</td>
<TD><input id="idName" type="text"></td>
</tr>
...
... some more input fields and labels go here
...
<TR>
<TD id="tdErr" class="colorRed"></td>
</tr>
</table>
</form>
</body>
In IE, if a form field contains an error, I change the tdName's color style to red, and set the tdErr's innerText property to some error message.
Is it possible to get such a form working across IE and NS?
Any constructive responses will be greatly appreciated.
Yogesh Pancholi
"If a pig loses its voice, is it disgruntled?"
I have developed an HTML page in IE that consists of a form whose input field and label name are contained in separate cells of a table. On clicking submit, my JavaScript performs client-side validation, and if it encounters any input errors, the label text becomes red, and an error message is posted at the bottom of the page.
My question is how can I get the page to behave identically in Netscape? Below is a small sample of my HTML for clarity.
<BODY>
<FORM>
<TABLE>
<TR>
<TD id="tdName" class="colorBlack">First Name:</td>
<TD><input id="idName" type="text"></td>
</tr>
...
... some more input fields and labels go here
...
<TR>
<TD id="tdErr" class="colorRed"></td>
</tr>
</table>
</form>
</body>
In IE, if a form field contains an error, I change the tdName's color style to red, and set the tdErr's innerText property to some error message.
Is it possible to get such a form working across IE and NS?
Any constructive responses will be greatly appreciated.
Yogesh Pancholi
"If a pig loses its voice, is it disgruntled?"