latest reactions

David Levin
Does the trim still work if the form fie …
mal
as long as the join keys are same in eac …
Tarida
I am using ipinfodb.com to redirect the…
David Levin
Good stuff. For those interested in a UD …
PtcBux
oh Wilbur Gans wrote thank you so much…

Clicky Web Analytics
Use OpenDNS
ZERIGO DNS

Ultimate dns hosting based on pre-defined templates, DNS redirection and lot's more.

mxna feeds

Generating Pre-Signed (Query String Authentication) Amazon S3 Urls With User-Specific DataColdBox Platform Utilities v3.0 ReleasedColdFusion Education Initiative: New Web Application Development curriculum from AdobeColdFusion Job Opening - State College, PAAdobe ColdFusion e-seminar: REST Support in ColdFusion 10Experimenting With The Amazon Simple Storage Service (S3) API Using ColdFusionVideo : Community Week #1 - Multi user management in ColdFusion 10What's new in ColdFusion world at Scott on the RocksMy Adobe ColdFusion wishlistLooking for ColdFusion support in Brackets?ColdFusion Position In FLI want to see in ColdFusion 11?Have some Ramen with your ColdFusionSpeaking at Atlanta #ColdFusion User Group tonight on 2 important topicsScotch on the Rocks ColdFusion Conference – 1rst day

All files are strictly confidential: all information is classified.
© Copyright 2002 - 2013 mximize.com.
All right reserved.

Visit Carlos GallupaMXNA webfeed

Warning: Think before using a xml

Like most of the developers, I use a / on all my HTML tags and also on my CFML tags.. at lease most of them. This morning I called a custom tag that was installed at a client's server, where I work at the moment and the application grinded to a halt... what was the case?

I called the custom tag like this.

<cf_answer name="something" returnvar="qGet" />

Nothing wrong with it, except that i'm used to having a start and end processing in my custom tags.

<cfswitch expression="#ThisTag.ExecutionMode#">
 <cfcase value="Start">
  <!--- Do things at the start --->
 </cfcase>

 <cfcase value="End">
  <!--- Do things at the end, mostly nothing --->
 </cfcase>
</cfswitch>

You probably can guess what was wrong with the application this morning and yes you're right.. the custom tag didn't have this mechanism, where you can skip the end processing of the custom tag. The / at the end told ColdFusion to process the tag again... (I knew this... but didn't think about it)

Before you go rolling on the ground laughing... it's just a reminder to all (like me) that are used to there own method of programming, to sometimes think back to why you program the way you do....

4129 viewed | 1 opinion(s)  | del.icio.us | Digg it | Tjarko @ 27/06/05 14:43 cet


Reactions:

Chris wrote....

Tjarko, tks a lot for sharing this tip. I was getting crazy about a similar case on one of my site on cfmx7 where one of my nav bar (generated in a customtag) was called indeed with a ending slash in my calling tag, and the nav bar was appearing twice, for no obvious reasons. Spent quite some time on that. Now I know... and it's working now after removing that ending slash. Tks again.
Cheers

18 February 2006 15:19 cet  

Leave your comment

Your name


Your url/website/link/email....


Some room for your reaction is placed here..



The answer to the ultimate question is?? (42 ;-))




URL en mail addresses are translated for you... life sometimes is that simple!!