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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing font colour automatically

Status
Not open for further replies.

Sitehelp

Technical User
Feb 4, 2004
142
GB
I have the following code:

<script>
if ViewRedCalls.fields.item("StaffID").value = "unassigned" then
<tr bgcolor=red>
else
<tr>
end if
</script>

What I want is for any records in my dinamic table (ViewRedCalls) that say "unassigned" to be written in RED. This code doesnt appear to be working and I cant work out why? The column that contains unassigned values is called StaffID. Any ideas? Thanks
 
Well... right off I see you have a few problems.

1. It looks like you're trying to code this instead of VBScript instead of Javascript, you might wanna try posting it there.

2. You are defining a table row inside <script> tags. This won't work.

3. Your VBScript and HTML are all mixed together, you might wanna use a server side language for something like this - ASP/PHP/JSP

-kaht

banghead.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top