PDA

View Full Version : Need help with IIF



fburns
10-01-2004, 03:01 PM
Does anyone see the problem?

<style>
td.TabOn {border-style:none;
background-color:lightsteelblue;}
td.TabOff {border-style:dotted;
background-color:steelblue;}
</style>

<cfparam name="DefaultTab" default="Staff">

<table style="margin-bottom:0" cellspacing="0" cellpadding="4">
<tr>
<td class="#IIF(DefaultTab eq 'Staff',de('TabOn'),de('TabOff'))#">Staff</td>
</tr>
</table>

I'm not getting an error, just not getting the expected outcome.

Clicken
10-06-2004, 12:54 AM
Hi there fburns,

Sorry, I don't see it?

Try posting in Web Programming located on the Forum Index. You should get a better response there.

Good Luck!

paulhiles
10-07-2004, 05:43 AM
Hi fburns,

I'm pretty much in the dark as far as ColdFusion goes. Looks like the sort of thing that CSS could manage quite easily. Do you have a url where we could have a look? I'm presuming the <cfparam> tag is properly nested? i.e. there's a closing tag to match the opening one.

Paul

PS. You might try Steven Glover or MysticLighthouse, they both have experience in ColdFusion.