hey actually you could make the omit vs. throw error functionality hinge on 
whether or not there's an endtag.  thistag.hasendtag

At 02:29 PM 5/24/01 -0700, you wrote:
>totally cool u guys
>
>hey nat.. work this up!
>just keep in mind you might not want to stop processing with an error
>message, you might want to continue processing as normal, just not
>including the stuff in between the failed cf_secureCheck tags.  be cool if
>it worked both ways.
>
>At 03:22 AM 5/24/01 -0400, you wrote:
> >***************************** Team Allaire *****************************
> >Gee, Lee, you're too modest! What a great technique! Wherever did you learn
> >that?
> >
> >-----Original Message-----
> >From: BORKMAN Lee [mailto:[EMAIL PROTECTED]]
> >Sent: Thursday, May 24, 2001 2:09 AM
> >To: Fusebox
> >Subject: RE: Cf_BodyContent and other functionalities!!
> >
> >
> >For example, here is my Custom Tag <CF_IF>:
> >
> ><CFPARAM NAME=condition DEFAULT=true>
> ><CFIF NOT (evaluate(attributes.condition))>
> >         <CFEXIT>
> ></CFIF>
> >
> >
> >You can test it with this code:
> ><CF_IF CONDITION="1 EQ 1">
> >         <CFOUTPUT>true!!!</CFOUTPUT>
> ></CF_IF>
> ><CF_IF CONDITION="1 EQ 2">
> >         <CFOUTPUT>false!!!</CFOUTPUT>
> ></CF_IF>
> >
> >
> >Or did everyone already know this?  I didn't until a couple of days ago ;-)
> >It's sure making my code a lot prettier.  Just wait for the new version of
> >CF_XFB! Huzzah!
> >
> >Leeb.
> >
> >
> >-----Original Message-----
> >From: BORKMAN Lee [mailto:[EMAIL PROTECTED]]
> >
> >Guys, in this case, ColdFusion DOES have a GOTO.  It's called CFEXIT, and
> >this exactly what it's for.
> >
> >So in your CustomTag, if you want to drop out through the closing tag, you
> >just <CFEXIT>  The default value of the METHOD attribute is "ExitTag"!!
> >
> >So at the front of your CustomTag, you check the security.  If the
> >permissions are not sufficient, you CFEXIT, and code execution resumes from
> >the CLOSING tag.
> >
> >btw, I take no credit for this technique.  It was Stan, or one of his
> >alter-egos.
> >
> >
> >IMPORTANT NOTICE:
> >This e-mail and any attachment to it is intended only to be read or used by
> >the named addressee.  It is confidential and may contain legally privileged
> >information.  No confidentiality or privilege is waived or lost by any
> >mistaken transmission to you.  If you receive this e-mail in error, please
> >immediately delete it from your system and notify the sender.  You must not
> >disclose, copy or use any part of this e-mail if you are not the intended
> >recipient.  The RTA is not responsible for any unauthorised alterations to
> >this e-mail or attachment to it.
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to