>
> CFML can server up CSS content just as easily as it can serve up text or
> HTML or many other formats. You do have to tell it that it is server up
> CSS with the above mentioned <cfcontent...> tag. It can have some
> caching issues since the browser will not automatically reuse a dynamic
> CSS source unless some header information is added to the source to aid
> the browser in its caching decisions.
The cfcontent isn't even necessary.
I threw together a quick and dirty test to verify this (since so many folks
seem to think it won't work).
test.cfm:
<link href="styletest.cfm" rel="stylesheet" type="text/css" media="all" />
<div class="foo">Test</div>
styletest.cfm:
..foo {border:1px solid black}
Calling test.cfm outputs "FOO" with a black, one pixel border around it, in
both Firefox and IE7
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2
Build sales & marketing dashboard RIAâs for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277334
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4