This explains why it printed twice... but why only setup? Why not the other values?
-----Original Message----- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 9:58 PM To: CF-Talk Subject: RE: Strangest custom tag problem EVER! Hahaha!!! I nearly close everything that way with all the XML I've been dealing with. Didn't even realize it! Thanks for setting me straight. It's been a loooong day. ...:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -----Original Message----- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 9:41 PM To: CF-Talk Subject: Re: Strangest custom tag problem EVER! You've got an XML self-close where you're calling the tag, and you're not trapping it in your tag. Try adding this to the top of the tag file: <cfif thistag.executionMode NEQ "start"> <cfexit method="exittag" /> </cfif> cheers, barneyb On 9/13/05, Bobby Hartsfield <[EMAIL PROTECTED]> wrote: > Ok, banged my head against the desk all day on this and never really found a > reason but I did finally make it work. Just wondering if anyone knew what > the deal is with it or if anyone else has seen it. > > I have a custom tag that has an attribute called "action". Depending on the > value of attributes.action, the tag will perform one of three operations. > > Setup, Rename, or Main (default) > > I finally stripped the tag all the way down to nothing but this if, elseif, > else statement trying to find out what was going on. > > <cfif attributes.action is "setup"> > <cfoutput>SETUP<br></cfoutput> > <cfelseif attributes.action is "rename"> > <cfoutput>RENAME<br></cfoutput> > <cfelse> > <cfoutput>MAIN<br></cfoutput> > </cfif> > > If attribute.action was "setup" it processed twice! (meaning it printed > out.. > > SETUP > SETUP > > If action was anything else, it worked fine. What gives? Has anyone else > seen this happen? > > I changed "setup" to "initialize" and it works fine. > > So does anyone know of any issues with the action="setup" combination or do > I need to fumigate my server for gremlins? > > > ...:.:.:.:.:.:.:.:.:.:.:.:.:.:. > Bobby Hartsfield > http://acoderslife.com > -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 100 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218153 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