This is a known issue. You cannot define UDFs in CTs that are used in Begin/End fashion as you have shown below. You can get around this by moving the UDF to an include and doing a CFINCLUDE from the CT.
======================================================================= Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email : [EMAIL PROTECTED] Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: C Runyan [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 30, 2001 3:26 PM > To: CF-Talk > Subject: udf in custom tag, problem with end tag > > > I found that a udf created on a page is not available inside > custom tags. I > just put a copy of the code into the custom tag. That works. > Now I want to > call the same tag more than once and that works as long as it is only > defined the first time the tag is called. The problem comes > if I use an end > tag. It simply doesn't work. If anyone else has tried this > and gotten it > to work let me know. > > ---------(customtag.cfm) > <cfoutput><br>#ThisTag.ExecutionMode#<br></cfoutput> > <cfif NOT ISDefined("caller.alreadycreated")> > <cfoutput>*inside if statement*<br></cfoutput> > <cfscript> > function iudf() {return "function output";} > caller.alreadycreated = "Yes"; > </cfscript> > </cfif> > -------------(callcustomtag.cfm) > <cf_customtag> > <cf_customtag> > <cf_customtag></cf_customtag> > --------- > > The error only occurs on the end tag for some reason. If the > function > definition is commented out it works fine. I've reduced the > code down as > simple as I can to try to figure this out. > > Chris Runyan > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists