Jon, Javascript is client side, cflocation is coldfusion, so it is server side. If you have a cflocation in a page, it redirects to another page, so thus your javascript never gets sent to the client, thus it doesn't run. If you want the redirect to happen on the client after that bit of javascript has execute, then you will need to do that in JS as well.
-- snake -----Original Message----- From: Jonathan Gingerich [mailto:[EMAIL PROTECTED] Sent: 06 December 2005 23:38 To: CF-Talk Subject: cfLOCATION - what's it doing?? 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:226497 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

