> > My question is: Why is the custom tag executing? Shouldn't the page stop
> > processing after the cflocation call? If I put a CFABORT directly after
> the
> > CFLOCATION call *within* the CFIF block, the custom tag still executes.
> > However, if I place the CFABORT above the custom tag call, but *outside*
> of
> > the CFIF block, the page properly CFLOCATEs and the custom tag is not
> > called.
>
> Hmm, sounds to me like something fishy in that CFIF conditional...
>
> try this (i know you'll think - well duh of course it's executing, but
just
> humor me :-))...
>
> <cfif IsDefined("form.next")>
>      <CFABORT>
>     <!--- form processing code here --->
>     <cflocation url="mainpage.cfm" addToken="no">
> </CFIF>
>
> if the page doesn't abort then you know that conditional is not running
> (which is what sounds like is happening), are there any nested conditonals
> in there that could cause the location not to happen ?

Nah, I've done all of that. I've moved the CFABORT literally line by line
through my code up to the CFLOCATION and after, and I'm still having the
problem. To answer your question, it does abort when I put it directly after
the opening CFIF. It aborts after the form processing code too, just before
the CFLOCATION. But if I put the abort after the CFLOCATION within the
block, the page correctly redirects to the called page -- and executes that
damn custom tag in the process!! The only code that runs before the
CFLOCATION is updating nodes in a structure, a WDDX serialization call, and
then an update query to a database. That's it --  no other possible
CFLOCATIONS or calls to that custom tag.

Man I'm so stumped. There's a part of me that feels like it's going to be a
stupid answer. But then I look at the fact that if I put the CFABORT on the
line directly after the CFIF form processing block and the redirect occurs
correctly *without* the call to the custom tag, and I know this has to be
Satanic.

Thanks for your help though.

Dave.
______________________________________________________________________
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
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

Reply via email to