Preference.

Some people would prefer to not introduce the extra CFML markup into the
HTML markup.

The jQuery lets you manipulate the HTML without actually modifying the
HTML.  That's nice.
The CF method will work even if the user has JS disabled.  That's nice.

Neither is "right" or "wrong".

On Fri, Nov 13, 2009 at 9:29 AM, Nicholas Stein <[email protected]>wrote:

>
> Maybe I am missing something.  Why not just to it this way...
> <cfset rNum = 0>
> <cfoutput query="searchresults">
> <cfset rNum = rNum + 1>
> <tr<cfif rNum MOD 2 EQ 0> class="alternaterow"</cfif>>
> ...display <td></td>
> </tr>
> </cfoutput>
>
> Nick
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328352
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to