Then as the others said - move your <cfset thisTag.generatedCOntent =
""> to the end branch. If you want to process the text, do this:

<cfset text = thisTag.generatedContent>
<cfset thisTag.generatedContent = "">


========================================================================
===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
(www.mindseye.com)
Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

Email    : [EMAIL PROTECTED]
Blog     : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, April 03, 2003 3:23 PM
> To: CF-Talk
> Subject: RE: thistag.generatedContent
> 
> 
> I put the comment in there for you. In 'END' mode I need to process 
> and output the generated content. I left out the processing code 
> because it doesn't play a roll in my problem. The heart of the 
> problem is that the content between my start and end tag is 
> displaying 
> during 'START' mode and I don't want it to.
> 
> = = = Original message = = =
> 
> I'm confused. Your code says...
> 
> If I'm in the end mode, do nothing. (Well, to be literal, you 
> output a
> HTML comment. Notice your comment has 2 dashes, not three.)
> 
> If I'm in the start mode, change thisTag.generatedContent to 
> an empty
> string.
> 
> However, in the start mode, you don't have generatedContent.
> 
> If you want to remove the content, move that cfset line to the 
> end mode
> branch.
> 
> ==============================================================
> ==========
> ===
> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> (www.mindseye.com)
> Member of Team Macromedia 
> (http://www.macromedia.com/go/teammacromedia)
> 
> Email    : [EMAIL PROTECTED]
> Blog     : www.camdenfamily.com/morpheus/blog
> Yahoo IM : morpheus
> 
> "My ally is the Force, and a powerful ally it is." - Yoda 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, April 03, 2003 2:57 PM
> > To: CF-Talk
> > Subject: thistag.generatedContent
> > 
> > 
> > I have a custom tag:
> > 
> > <cf_myTag>
> > Here is a bunch of output
> > </cf_myTag>
> > 
> > and I want to process the "Here is a bunch of output" text
> like 
> > this:
> > 
> > <CFIF thistag.ExecutionMode is 'END'>
> >   <!-- process text then output here -->
> > <cfelse>
> >     <!-- do not output text here -->
> > ~<CFSET ThisTag.GeneratedContent = "">
> > </CFIF>~
> > 
> > Using the above code my processed output and my raw output
> are 
> > both being displayed. I know I have done this before but I
> can't 
> > seem to get it working.
> > 
> > Thanks
> > David
> > 
> > ___________________________________________________________
> > Sent by ePrompter, the premier email notification software.
> 
> > Free download at http://www.ePrompter.com.
> > 
> > 
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
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

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

Reply via email to