I was trying to write something to make my input tags more readable if I wanted
an optional value tag. Something Like
<input type="text" name="bob" #myValue("somearg")#>
What I would like to happen is if somearg is undefined return nothing else
evaluate the variable in the 'value="someargsVal"' format. Not really sure how
to handle this in a function.
Currently I am doing something like
<input type="text" name="bob" <cfif
isDefined("somearg")>value="#somearg#"</cfif>>
If this is a silly thing to try and do, I would love to see some alternative
examples if possible.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU
Archive:
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2510
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15