Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Text Colour in Table Cells in NS

Status
Not open for further replies.

YogeshPancholi

Programmer
Jul 4, 2000
14
0
0
CA
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=&quot;tdName&quot; class=&quot;colorBlack&quot;>First Name:</td>
<TD><input id=&quot;idName&quot; type=&quot;text&quot;></td>
</tr>
...
... some more input fields and labels go here
...
<TR>
<TD id=&quot;tdErr&quot; class=&quot;colorRed&quot;></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

&quot;If a pig loses its voice, is it disgruntled?&quot;
 
As you'll see if you look at the postings in the ASP, Javascript, and DHTML forums, you'll see that you're not the only one frustrated with Netscape's inability to easily do things that IE can do. The basic problem revolves around the fact that Netscape usually requires that you reload the page in order to change it's appearance. You can sometimes get around this with layers, but it takes a good amount of DHTML knowledge to get Netscape to dynamically change page content.


nick bulka

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top