Question: What about using onApplicationStart in application.cfc to set global cf to js variables for the site
and using onRequestStart in application.cfc to set specific page cf to js variables for a page. Gives me only one place to change variables. Any drawbacks to that approach? -----Original Message----- From: Michael Grant [mailto:[email protected]] Sent: Thursday, October 28, 2010 2:30 PM To: cf-talk Subject: Re: Question about using javascript in .cfm files... No, more like this <cfset jsVar = "myCFVar" /> <cfoutput> <script> var jsVar = '#jsVar#'; </script> </cfoutput> <script src="srcJS.js"></script> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338656 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

