CF runs on the server, before the Javascrtipt would even have a chance to hit the browser.
-----Original Message----- From: chn g [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2008 1:05 PM To: CF-Talk Subject: Javascript in CFC What's wrong with the following code? <cfif testqry.recordcount EQ 1> ....... <cfelse> <script type="text/javascript"> Alert("Error"); </script> <cflocation url="http://#CGI.SERVER_NAME#/testfile.html"> </cfif> It's not showing up alert box, directly displaying the html file. Thanks Chn ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312042 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

