Can you post the code as it is now? Seems like we're getting much closer. Tim Laureska wrote: > If I take out the cfinclude then I get a different error, as if it > doesn't see the function tag at all: > > Variable NEWSTRING is undefined > > > I give :-( > > Tim > > > > > -----Original Message----- > From: Ray Champagne [mailto:[EMAIL PROTECTED] > Sent: Monday, January 09, 2006 6:09 PM > To: CF-Talk > Subject: Re: stripASCII.cfm > > Why? > > Just use it as they tell you, don't go creating all kinds of problems > for yourself by adding your own syntax. > > Tim Laureska wrote: > >>Plus I'm using a cfinclude statement to reference the custom tag >> >>Tim Laureska >>1st-String Technologies >> >> >> >> >>-----Original Message----- >>From: Ray Champagne [mailto:[EMAIL PROTECTED] >>Sent: Monday, January 09, 2006 5:52 PM >>To: CF-Talk >>Subject: Re: stripASCII.cfm >> >>OK...code time. >> >>Show us your code. There shouldn't be an end tag, and you HAVE to > > make > >>sure that the stripascii.cfm file is in the same directory you're >>calling the tag. Those two are done, yes? >> >>Tim Laureska wrote: >> >> >>>Added an end tag... ie. </cf_StripASCII> and get the same error >>>Tim >>> >>> >>> >>> >>>-----Original Message----- >>>From: Ben Forta [mailto:[EMAIL PROTECTED] >>>Sent: Monday, January 09, 2006 5:12 PM >>>To: CF-Talk >>>Subject: RE: stripASCII.cfm >>> >>>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:228966 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