CFMX will read anything in the .CFM files. It has no idea that what it's generating is JavaScript (or HTML, or XML, or SVG, or whatever), so it can't abide by it's commenting rules. If you don't want CF to process something, you have to use CFML comments (<!--- --->) around it.
cheers, barneyb On Fri, 3 Dec 2004 11:28:19 -0500, Chris Norloff <[EMAIL PROTECTED]> wrote: > We've got a weird thing happening - CFMX is reading javascript code that > we've commented out, and throwing an error because of it. (CFMX for J2EE, > v6.1 (no updater), on WebSphere 5.1.0.3) > > The javascript code is inside <cfoutput> tags. Part of the javascript is > commented out with the standard // at the beginning of the line. Twice in the > last two days CFMX has thrown errors when it reads variables in the > commented-out lines. > > I wonder if CFMX is reading the code on compilation and throwing the error > before it actually executes the code. > > We deleted the lines, but how weird! Anybody else experience this? I > couldn't find any info at Macromedia, the Macromedia CF discussion area, or > FusionAuthority archives. > > thanks, > Chris Norloff > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:186126 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

