I tried this with a dummy query and it worked fine. Only thing I can
think of is... Does your query have a column called content?
> Here's the complete code of the tag as it was before I
> started trying to
> debug this... It errors on line 13 saying that content is not
> an object and
> therefore content[rsproperties.variablename] can't be evaluated...
> Request.UDF.stripTags() is a custom function, however,
> content is not a
> structure immediately after line 8 where it's set to
> attributes.content ...
> I may just use attributes.content, but if there's a bug in my
> copy of CF
> Server or the like, then it'd be nice to know and possibly fix.
>
> <cfparam name="attributes.properties" type="query">
> <cfparam name="attributes.content" type="struct">
> <cfparam name="attributes.throwerror" type="boolean" default="true">
> <cfparam name="attributes.scope" type="string" default="CALLER">
> <cfparam name="attributes.return" type="string" default="tObject">
>
> <cfset rsproperties = attributes.properties>
> <cfset content = attributes.content>
> <cfif REFind("[^,[:space:]]",valuelist(rsproperties.striptagsmode))>
> <cfloop query="rsproperties">
> <cfif len(trim(rsproperties.striptagsmode))>
> <cfif attributes.throwerror>
> <cfset invalidtag =
> Request.UDF.stripTags(rsproperties.striptagsmode,rsp
> roperties.striptagslist,content[rsproperties.variablename],true)>
> <cfif len(invalidtag)>
>
> <cfoutput><cfsavecontent variable="errormessage">
> Content not allowed. The tag
> <p style="font-weight:bold;">#invalidtag#</p>
> is invalid in the <b>#content[rsproperties.variablename]#</b>
> field for this content type.
> </cfsavecontent></cfoutput>
> <cfthrow
> type="Tapestry" message="#trim(errormessage)#">
> </cfif>
> <cfelse>
> <cfset
> content[rsproperties.variablename] = Request.UDF.stripTags(rsprop
> erties.striptagsmode,rsproperties.striptagslist,content[rsprop
> erties.variabl
> ename],false)>
> </cfif>
> </cfif>
> </cfloop>
> </cfif>
>
> <cfif not attributes.throwerror>
> <cfset "#attributes.scope#.#attributes.return#" = content>
> </cfif>
>
>
>
> Isaac
> Certified Advanced ColdFusion 5 Developer
>
> www.turnkey.to
> 954-776-0046
>
>
______________________________________________________________________
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists