Alright, thanks!
-Original Message-
From: Michael Grant [mailto:mgr...@modus.bz]
Sent: Thursday, October 28, 2010 3:47 PM
To: cf-talk
Subject: Re: Question about using javascript in .cfm files...
Well the thing is that the js variables need to be part of the DOM. You can
your cf vars
t; Gives me only one place to change variables.
>
> Any drawbacks to that approach?
>
>
>
> -Original Message-
> From: Michael Grant [mailto:mgr...@modus.bz]
> Sent: Thursday, October 28, 2010 2:30 PM
> To: cf-talk
> Subject: Re: Question about using javascript in
?
-Original Message-
From: Michael Grant [mailto:mgr...@modus.bz]
Sent: Thursday, October 28, 2010 2:30 PM
To: cf-talk
Subject: Re: Question about using javascript in .cfm files...
No, more like this
var jsVar = '#
t;
> and then using "jsVar" in the js?
>
> I haven't tried any of this or even searched
> for an answerjust being lazy.
>
> Example?
>
> Rick
>
> -Original Message-
> From: Michael Grant [mailto:mgr...@modus.bz]
> Sent: Thursday, Octo
Var" in the js?
>
> I haven't tried any of this or even searched
> for an answerjust being lazy.
>
> Example?
>
> Rick
>
> -Original Message-
> From: Michael Grant [mailto:mgr...@modus.bz]
> Sent: Thursday, October 28, 2010 2:06 PM
> To:
el Grant [mailto:mgr...@modus.bz]
Sent: Thursday, October 28, 2010 2:06 PM
To: cf-talk
Subject: Re: Question about using javascript in .cfm files...
I'll +1 that. I generally only use CF to set js vars at the top of the head
too. That way your js can stay pure js.
On Thu, Oct 28, 2010 at
t; Interesting approach, Carl!
>> Haven't thought about that.
>> I'll definitely give that a try!
>>
>> Thanks for the tip!
>>
>> Rick
>>
>> -Original Message-
>> From: Carl Von Stetten [mailto:cmvon...@hotmail.com]
>> Sent: T
try!
>
> Thanks for the tip!
>
> Rick
>
> -Original Message-
> From: Carl Von Stetten [mailto:cmvon...@hotmail.com]
> Sent: Thursday, October 28, 2010 11:19 AM
> To: cf-talk
> Subject: Re: Question about using javascript in .cfm files...
>
>
> Rick,
>
Interesting approach, Carl!
Haven't thought about that.
I'll definitely give that a try!
Thanks for the tip!
Rick
-Original Message-
From: Carl Von Stetten [mailto:cmvon...@hotmail.com]
Sent: Thursday, October 28, 2010 11:19 AM
To: cf-talk
Subject: Re: Question about using
Rick,
I have shared CF variables with JavaScript too. What I usually do is this:
If I have to do any processes to define the CF variables, I put them at the top
of the document, above the section. Then, in the section of my
CFM page, I add a inside a
Rick,
I have shared CF variables with JavaScript too. What I usually do is this:
If I have to do any processes to define the CF variables, I put them at
the top of the document, above the section. Then, in the
section of my CFM page, I add a inside a
Thanks for the tip.
-Original Message-
From: Michael Grant [mailto:mgr...@modus.bz]
Sent: Wednesday, October 27, 2010 9:10 PM
To: cf-talk
Subject: Re: Question about using javascript in .cfm files...
I think CTRL+SHIFT+R forces a full refresh in FF.
On Wed, Oct 27, 2010 at 9:05 PM
ime I've had "quirkiness" when working
> with a lot of js, ajax, and cf together.
>
> Thanks for the feedback!
>
> Rick
>
> -Original Message-
> From: Michael Grant [mailto:mgr...@modus.bz]
> Sent: Wednesday, October 27, 2010 7:52 PM
> To: cf-talk
ilto:mgr...@modus.bz]
Sent: Wednesday, October 27, 2010 7:52 PM
To: cf-talk
Subject: Re: Question about using javascript in .cfm files...
Yeah, to the browser they are identical. Is it possible that you are calling
your function before it's been added to the document? Like you don't
call checkUserFavorites above your
:valliants...@gmail.com]
Sent: Wednesday, October 27, 2010 7:33 PM
To: cf-talk
Subject: Re: Question about using javascript in .cfm files...
It's pretty much exactly the same. Even more exacter if you set the
content type to text/javascript or whatever using cfcontent.
:Den
--
Custom is o
Yeah, to the browser they are identical. Is it possible that you are calling
your function before it's been added to the document? Like you don't
call checkUserFavorites above your
It's pretty much exactly the same. Even more exacter if you set the
content type to text/javascript or whatever using cfcontent.
:Den
--
Custom is our nature. What are our natural principles but principles of custom?
Blaise Pascal
On Wed, Oct 27, 2010 at 11:44 AM, Rick Faircloth wrote:
>
> I'
I've been using js files as .cfm files
so I can intermix cf variables in the js.
i.e., naming myJSFile.js, "myJSFile.js.cfm", instead.
This seems to work fine, but I've run into an issue
that makes me wonder if this works in all cases as
a regular js file would.
Here's the question:
If I have
18 matches
Mail list logo