Oh yeah? Well I have a special line I put into all of my cf routines, just
to verify that there is a server out there running the app...
<CFIF IsDefined("cgi.http_host")>
<cf_kiss>
<CF_IF CONDITION="1 EQ 1">
<CFOUTPUT>true!!!</CFOUTPUT>
</CF_IF>
<CF_IF CONDITION="1 EQ 2">
<CFOUTPUT>false!!!</CFOUTPUT>
</CF_IF>
</cf_kiss>
<CFELSE>
<cfinclude
template="this_is_not_running_but_then_how_can_i_be_aware_of_that_unless_its
_running_oh_no_im_caught_in_a_logical_paradox!_help_meeeee_help_meeeeeeee.cf
m">
</CFIF>
With this secret addition of code, I can sleep at nights peacefully, knowing
that all of my CF code is executed on some sort of server. And if it is
executed on a non-existent server, perhaps one from the fourth dimension,
then the code gracefully fails over to a page expounding on the logical
paradox presented by executing code on a nonexistent server. And of course,
that template includes a CFABORT to stop any further silliness.
> -----Original Message-----
> From: Joseph Higgins [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 24, 2001 8:43 AM
> To: Fusebox
> Subject: Re: Cf_BodyContent and other functionalities!!
>
> I am sitting here asking myself . . . .why? Lets see you are adding a tag
> (more processing). The tag has an opening and a closing (the cfif already
> has an opening and a closing). And you do not have the ability to nest
> stuff. So what is your point?
>
> I came up with a new tag called <cf_kiss>.
> I place it around large blocks of code and it automatically simplifies it
> for me.
> In fact if I place this tag around your sample code like this:
>
> <cf_kiss>
> <CF_IF CONDITION="1 EQ 1">
> <CFOUTPUT>true!!!</CFOUTPUT>
> </CF_IF>
> <CF_IF CONDITION="1 EQ 2">
> <CFOUTPUT>false!!!</CFOUTPUT>
> </CF_IF>
> </cf_kiss>
>
> It outputs:
>
> <cfif 1 EQ 1>
> True!!!
> </cfif>
> <cfif 1 EQ 2>
> False!!!
> </cfif>
>
> Thats a kewl tag no doubt.
>
> I can't believe I spent the time writing that response. It must be my
> American sarcasm. I just do not see the point . . .
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists