> The problem is that when, and only when, I call <cf_makesomehtml>,
> the ENTIRE http request appears to be running two times! I can't
> understand why that would possibly happen. In other words, in my
> little tree of nested custom tags, a very simple tag which
> generates some text is causing the entire request to be evaluated
> by the server a second time.

If you have an opening and closing CF_MAKESOMEHTML tag, and you don't
explicitly write code within that tag to prevent it from running twice,
it'll run twice.

<cf_foo> <-- runs once

<cf_foo></cf_foo> <-- runs twice

<cf_foo/> <-- runs twice

To avoide this, within the custom tag, you can enclose all the other code
within this:

<cfif ThisTag.ExecutionMode is "start">
...
</cfif>

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to