J
James
Could you help me understand why this isn't working. I
have a function:
Function evaluateSwitch(x)
if x = "T" then
evaluateSwitch = "border"
else
evaluateSwitch = "altborder"
end if
End Function
When I do this:
response.write evaluateswitch(highlightSwitch)
It displays correctly (border)
But when I try to incorporate it into a division like this:
<div class="<%=evalutateSwitch(highlightSwitch)%>"></div>
It does not work and gives me a type mismatch error. Do
you have any ideas on why this isn't working.
Thanks,
James
have a function:
Function evaluateSwitch(x)
if x = "T" then
evaluateSwitch = "border"
else
evaluateSwitch = "altborder"
end if
End Function
When I do this:
response.write evaluateswitch(highlightSwitch)
It displays correctly (border)
But when I try to incorporate it into a division like this:
<div class="<%=evalutateSwitch(highlightSwitch)%>"></div>
It does not work and gives me a type mismatch error. Do
you have any ideas on why this isn't working.
Thanks,
James