Submit Your Article Forum Rules

Results 1 to 3 of 3

Thread: Need help with IIF

  1. #1
    Junior Member
    Join Date
    Oct 2004
    Posts
    1

    Need help with IIF

    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.

  2. #2
    WebProWorld MVP Clicken's Avatar
    Join Date
    Jul 2004
    Posts
    327
    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!

  3. #3
    Senior Member paulhiles's Avatar
    Join Date
    Jul 2003
    Posts
    2,073

    ColdFusion param

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •