Carl,
When I create a project I don't use the default location (witch is where your
workspace is saved), but I point to a folder in the wwwroot-folder of my CF
server. This way I can still test my apps in the browser.
Kind regards,
Guust Nieuwenhuis
On 14 Sep 2011, at 22:08, Carl Von
I recently had the opportunity to sit down and talk with the guys at .NET
Rocks!, comparing ColdFusion to .NET. You may recall I had a few questions I
asked here in prep for that interview.
http://www.dotnetrocks.com/default.aspx?showNum=696
Keep in mind that we were talking ColdFusion at a
!--- [ js version of cf variables ] ---
cfset js_sitename = application.sitename /
cfset js_website = application.website /
cfset js_site_manager_dsn = application.site_manager_dsn /
What exactly do you mean by processed? Do you mean outputted to the browser?
Wouldn't the code you show end up being before the doctype declaration of an
html page?
On Thu, Sep 15, 2011 at 11:21 AM, Rick Faircloth
r...@whitestonemedia.comwrote:
!--- [ js version of cf variables ] ---
Hi, Michael...
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.
I establish all the CF variables in the application.cfc and
was trying to see if I could accomplish the same thing with the
JS
It seems that no matter how I try to do it, either putting
js directly into an application.cfc or either using a cfinclude
in an onRequest function, the js can't be processed along
with the other code in the application.cfc.
A few options come to mind...
1) Wrap that output with
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
Thanks for the confirmation, Justin.
That's what I figured...
Rick
-Original Message-
From: Justin Scott [mailto:leviat...@darktech.org]
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
Thanks for the approaches, Justin...
I'll give them a try.
Rick
-Original Message-
From: Justin Scott [mailto:leviat...@darktech.org]
Sent: Thursday, September 15, 2011 11:38 AM
To: cf-talk
Subject: Re: Any way to process this within onRequest in Application.cfc?
It seems that no
JS is client side. CF is server side. You can use CF to generate the js code
that the browser will run, but you can't actually run it on the server side.
(Caveat is server-side js ofcourse.)
On Thu, Sep 15, 2011 at 11:36 AM, Rick Faircloth
r...@whitestonemedia.comwrote:
Hi, Michael...
No,
Wow Billy,
Carl was pretty hostile to CF a few years ago when I stopped listening.
Great show, I'm really glad you did it. See you at MAX!
nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]
On Thu, Sep 15, 2011 at 12:14 AM, Billy Cravens bdcrav...@gmail.com wrote:
11 matches
Mail list logo