Thanks for the confirmation, Justin.

That's what I figured...

Rick

-----Original Message-----
From: Justin Scott [mailto:[email protected]] 
Sent: Thursday, September 15, 2011 11:40 AM
To: cf-talk
Subject: Re: Any way to process this within onRequest in Application.cfc?


> No, I'm not trying to output anything to the browser, just
> establish the variables, in this case the JS global variables
> for use throughout the site.

JavaScript is executed entirely by the browser, so for the browser to
get those variables you will need to include them in the HTML output
stream.  ColdFusion will do all of its processing on the server,
generate the final HTML and send it to the browser, and then the
browser will execute any JavaScript attached to that generated page.
ColdFusion and its CFM/CFC files aren't going to "process" any of your
JavaScript code internally.


-Justin



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:347488
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to