server side code will execute before client side code.  so the server
does it's relocation (based on the <cflocation>) before the JS (or any
other part of the document) ever has a chance to be interpreted by the
client/browser.

On 12/6/05, Jonathan Gingerich <[EMAIL PROTECTED]> wrote:
> 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.
>
> Any guess??
>
> Jon.
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:226354
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

Reply via email to