Custom tags in CF 7 go where? And why do you say STRIP="no" -wouldn't you want "yes" to string out the ascii stuff? I guess I'm not understanding what strip="yes|no" means
Tim Laureska 1st-String Technologies -----Original Message----- From: Ray Champagne [mailto:[EMAIL PROTECTED] Sent: Monday, January 09, 2006 5:12 PM To: CF-Talk Subject: Re: stripASCII.cfm Not sure how you're using it, but here's a sample of how I am, maybe this'll help. <CF_StripASCII STRING="#FORM.textarea#" OUTPUT="content_filtered" STRIP="no"> Ben Forta wrote: > ThisTag is not used in UDFs, it is used in Custom Tags. > > ThisTag.HasEndTag indicates whether or not an end tag is present. Looks like > the tag you are using was made to be used as: > > <cf_tag ...> > .... > </cf_tag> > > If your tag does not use an end tag, just rip out that processing. > > --- Ben > > > > > > -----Original Message----- > From: Tim Laureska [mailto:[EMAIL PROTECTED] > Sent: Monday, January 09, 2006 5:04 PM > To: CF-Talk > Subject: stripASCII.cfm > > Ok. got this tag off DevEx in an effort to cull out apostrophes from a text > string in an access db field.. I'm fumbling with this UDF. > > > > > > If anyone is familiar with this tag, I'd appreciate your assistance > > Getting this error: > > > > > > Element HASENDTAG is undefined in THISTAG. > > > > > > > > > > > > > > > 23 : ---> > 24 : > 25 : <CFIF (Not IsDefined("Attributes.String") OR Not > IsDefined("Attributes.Output")) AND Not ThisTag.HasEndTag> > 26 : <CFABORT SHOWERROR="<P><B>StripASCII Error:</B> You must specify > both a STRING and an OUTPUT attribute.</P>"> > 27 : <CFELSEIF Not ThisTag.HasEndTag> > > > > Here's how I have the tag in the template: > > > > <cfinclude template="stripASCII.cfm"> > > <CF_StripASCII STRING="#performed_by#" OUTPUT="newString" STRIP="yes"> > > > > <cfoutput> > > #newString# > > </cfoutput> > > > > > > > > Tim > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228936 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54