You are exactly correct. ColdFusion gets first crack at all the code, and it tries to parse all it has been told to. So, if you have put the JS code inside of an output tag, CF is going to consider it as code to process. Then once it is done, all the resulting output is sent to the web server which of course sends it to the client, where the JS is finally run, and the JS comments would be honored.
This is correct behavior; it allows you to create dynamically built JS by using ColdFusion to build the JS code dynamically based on what ever parameters you want it to use. If you want CF to ignore a line of code it must be commented out with CF comments <!--- ---> -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Silver Sponsor - New Atlanta http://www.newatlanta.com Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186101 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

