> I'm having a problem with cfLOCATION and I'm not sure if it's a bug or
> I'm not understanding it correctly.
> 
> I have:
> 
>    <SCRIPT TYPE="text/javascript">
>      top.will_load++;
>      parent.frames[0].location
>        = "ButtonPanel.cfm"
>        + "?mode=debug";
>    </SCRIPT>
>  </cfIF>
>  <cfLOCATION 
> URL="CatReviewFile.cfm?Revision=#URLEncodedFormat(RevisionPath)#">
> 
> (Yes, the cfIF is firing).  When I run it, the script just does not
> take effect.  I tried replacing it with a large amount of text,
> and that is not displayed either.
> 
> If I replace the cfLOCATION with Javascript - location = 
> "CatReviewFile...
> it works just fine.
> 
> I get the impression there is some optimization that says "cfLOCATION,
> okay we are going to be overwritten anyway, so we can ignore 
> everything." Obviously it can't.

If you place CFLOCATION within an HTML page with any content, that content
will not display (or in the case of JavaScript, it will not execute). The
CFLOCATION tag sets an HTTP Location response header, which tells the
browser to disregard the page and fetch the one specified in your CFLOCATION
tag.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226377
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to