Watch out for endless loops, where the tag calls itself indefinitely.  I
usually put some preventative code in there so that it doesn't execute for X
amount of time.

For instance:

<cfif not isDefined("request.foo_tag_time")>
  <cfset request.foo_tag_time = now()>
</cfif>
<cfif dateDiff("n", request.foo_tag_time, now()) GT 1>
  The tag ran over 1 minute <cfabort>
</cfif>

HTH,

Brad

> -----Original Message-----
> From: Michael E. Carluen [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 13, 2003 7:05 PM
> To: CF-Talk
> Subject: Using a custom tag within the same custom tag
>
>
> I was wondering if there is any risk on a custom tag that
> essentially uses
> itself.
>
> Example:
>
>       On test1.cfm
>               ....
>               <cf_foo_tag variable="1">
>
>
>       On foo_tag.cfm
>               ....
>               <cf_foo_tag variable="100">
>
>
> I am using this method to have an unlimited cascading effect on a set of
> parent/child data, and it works.  I was just wondering if am exposing
> myself to any potential problems.
>
> Thanks gang!
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to