And the way around to prevent it from executing twice is to: <cfif thistag.ExecutionMode EQ "End"> ... your code here </cfif>
within the customTag. Didn't I just see this on Corfield's blog or something? I swore I saw this somewhere, I can't find the reference to it now. ~Todd On Fri, 5 Jul 2002, Dave Watts wrote: > > > Really? Do you do this: > > > > > > <cfset myvar = "myval" /> > > > > I have seen a lot of code like this ... Especially <br/> 's > > > > Studio does it automatically for you as well ... > > Well, that's a little different. If you want to write HTML that will comply > with XHTML, you have to close every tag, even BR and HR tags which would > never contain anything - that's just the nature of XML. > > But it's another thing to treat CFML that way, because CFML isn't XML, and > if you treat it like XML, you may run into odd situations, like the one > shown above. For example, does it set the variable twice? Well, fortunately > (I guess) it doesn't in CF 5 or CF MX, although the opposite behavior might > be expected based on how custom tags work - if they have a closing slash, > they do execute twice. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > voice: (202) 797-5496 > fax: (202) 797-5444 > ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com 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

