Thanks guys,
Jean-Marc
-Message d'origine-
De : Joe Rinehart [mailto:[EMAIL PROTECTED]
Envoyé : lundi 28 juin 2004 15:40
À : CF-Talk
Objet : Re: cfloop and cfscript
This should get you there:
for (i = 1; i lte listLen(list); i = i + 1) {
element = listGetAt(li
This should get you there:
for (i = 1; i lte listLen(list); i = i + 1) {
element = listGetAt(list, i);
writeOutput(element);
}
- Original Message -
From: jean-marc bottin <[EMAIL PROTECTED]>
Date: Mon, 28 Jun 2004 09:06:30 -0400
Subject: cfloop and cfscript
To: CF-Talk &
On Monday 28 Jun 2004 14:06 pm, jean-marc bottin wrote:
>
> in a cfscript
for(i=1;i lte listLen(theList);i=i+1)
--
Tom Chiverton
Advanced ColdFusion Programmer
Tel: +44(0)1749 834997
email: [EMAIL PROTECTED]
BlueFinger Limited
Underwood Business Park
Wookey Hole Road, WELLS. BA5 1
Hi,
I have been looking at the documentation at macormedai but i didi not find any clear explaination on how to do a cfloop for a list in a cfscript.
How can i do
in a cfscript
Thanks,
Jean-Marc
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings
Jake . [mailto:[EMAIL PROTECTED]
Sent: 19 May 2004 15:24
To: CF-Talk
Subject: Re: Add mappings via cfscript
What's the name of that CFC so I can go check it out?
So to clarify... is this _just_ for CFCs, or can you add standard CF Admin
mappings?
Thanks!
>I submitted a CFC
What's the name of that CFC so I can go check it out?
So to clarify... is this _just_ for CFCs, or can you add standard CF Admin mappings?
Thanks!
>I submitted a CFC to cfczone.org,
>
>http://www.cfczone.org/cfcs/index.cfm
>
>which will add/remove/update CFC mappings on CF 6.1,
[Todays Threads]
I submitted a CFC to cfczone.org,
http://www.cfczone.org/cfcs/index.cfm
which will add/remove/update CFC mappings on CF 6.1,
john.
-Original Message-
From: Burns, John D [mailto:[EMAIL PROTECTED]
Sent: 18 May 2004 19:27
To: CF-Talk
Subject: Add mappings via cfscript
Does anyone have
Does anyone have code or resources for tapping into the CF Admin
functionalities such as adding mappings via cfscript and any other fun
and helpful functionality to script automatically without having to go
into the CF Admin?
John Burns
[Todays Threads]
[This Message]
[Subscription
t; Sent: Monday, May 17, 2004 3:02 PM
> To: CF-Talk
> Subject: cfscript and methods
>
> When creating an instance of an object (component) within
> cfscript how
> would I call a method of that object using arguments[ie:
> myobject.init(ID);]? It's pretty strai
>When creating an instance of an object (component) within cfscript how
>would I call a method of that object using arguments[ie:
>myobject.init(ID);]? It's pretty straight forward using cfinvoke, but
>I'm not finding much documentation on component manip
When creating an instance of an object (component) within cfscript how
would I call a method of that object using arguments[ie:
myobject.init(ID);]? It's pretty straight forward using cfinvoke, but
I'm not finding much documentation on component manipulation with
cfscript...
Cutte
>>Required and necessary are two different things.
In logic terms, they are not.
>>Using 'var' isn't required, but it is definitely necessary,
Let's say it's recommended, not required nor necessary, but highly recommended.
--
___
See some cool custom tags her
> > What makes you think it is isn't necessary?
>
> Because it isn't. Period.
Required and necessary are two different things. Using 'var' isn't
required, but it is definitely necessary, at least in anything approaching
normal circumstances.
Cheers,
barneyb
[Todays Threads]
[This Message]
> > What makes you think it is isn't necessary?
>
> Because it isn't. Period.
I think I was very clear just a few words later that this was just my
opinion.
>
> > Any variable created inside a
> > cfscript based function, or a cffunction based function, mu
- Original Message -
From: "Raymond Camden" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, May 07, 2004 11:49 AM
Subject: RE: cfscript question
> What makes you think it is isn't necessary?
Because it isn't. Period.
>
What makes you think it is isn't necessary? Any variable created inside a
cfscript based function, or a cffunction based function, must be var scoped.
Period. (Well, ok, yea, it works w/o the var scope, but leaving them off is
very risky.)
[Todays Threads]
[This Message]
[Subscri
From: Jim McAtee [mailto:[EMAIL PROTECTED]
Sent: Friday, May 07, 2004 1:33 PM
To: CF-Talk
Subject: cfscript question
If the declaration of variables using var within cfscript isn't
necessary,
what kind of variables are being created? Are they in the
variables
scope?
For ex
Yeah, they're in the VARIABLES scope. There's really no difference between
a CFSCRIPT function and a CFFUNCTION one, except that you can use tags,
declare named optional arguments and do typechecking with CFFUNCTION. Other
than that, I believe the two are 100% equivalent.
Cheer
If the declaration of variables using var within cfscript isn't necessary,
what kind of variables are being created? Are they in the variables
scope?
For example, the variables 'sdatefmt' and 'edatefmt' in the cf function
shown below:
function DateRangeFormat(sdate, eda
> -Original Message-
> From: Cutter (CF-Talk) [mailto:[EMAIL PROTECTED]
> Sent: zondag 28 maart 2004 3:22
> To: CF-Talk
> Subject: Re: Query Output in a cfscript
>
> Yes, but I'm not trying to actually 'write' the data to a
> page at this point.
Assuming you're using CFMX, you could also create a tag based UDF that could be called within your cfscript.
> Actually you can manipuate the query object inside you cfscript tag.
> You just cant't run the cfquery tag inside your cfscript. place
Actually you can manipuate the query object inside you cfscript tag. You just cant't run the cfquery tag inside your cfscript. place the cfoutput around the cfscript and you should be good.
Dwayne Cole, MS in MIS, MBA
Florida A&M University
Certified Advanced ColdFusion Developer
850
If you have one column of a recordset you want to convert to an array,
you can do
ListToArray(Valuelist(qQuery.Column,"~"),"~")
> -Original Message-
> From: Cutter (CF-Talk) [mailto:[EMAIL PROTECTED]
> Sent: zondag 28 maart 2004 1:56
> To: CF-Talk
>
yQuery.recordCount; i = i + 1){
> writeOutput(myQuery.myColumn[i] & '');
> }
> -Original Message-
> From: Cutter (CF-Talk) [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 27, 2004 7:56 PM
> To: CF-Talk
> Subject: Query Output in a cfscript
>
iteOutput()
>
> something like this should work:
>
> for(i = 1; i lt myQuery.recordCount; i = i + 1){
> writeOutput(myQuery.myColumn[i] & '');
> }
> -Original Message-
> From: Cutter (CF-Talk) [mailto:[EMAIL PROTECTED]
> Sent: Saturday, Mar
rday, March 27, 2004 7:56 PM
To: CF-Talk
Subject: Query Output in a cfscript
I have an object for an apparel item. This item may come in 10 different
colors. I have a db table which will have an entry for each color
associated with an item (referenced by the item id and the color id).
Whe
I have an object for an apparel item. This item may come in 10 different
colors. I have a db table which will have an entry for each color
associated with an item (referenced by the item id and the color id).
When initializing my apparel item I want to have a property of colors.
This would be a
> I have a collection of parameters that I keep in a struct.
> Mostly out of a perceived feeling that this is tidier. I use
> cfscript for this sort of thing for speed. It occurs to me I
> should ask Those Who Know... would it be faster to just use
> plain variables? O
--
| From: Matt Robertson [mailto:[EMAIL PROTECTED]
| Sent: Wednesday, January 14, 2004 03:36
| To: CF-Talk
| Subject: CFScript StructInsert or cfset. Which is faster?
|
| I have a collection of parameters that I keep in a struct.
| Mostly out of a perceived feeling that this is tidier. I use
|
ceived feeling that this is tidier. I use cfscript for this
> sort of thing for speed. It occurs to me I should ask Those Who
> Know... would it be faster to just use plain variables? Or a 2d
> array?An example is below.
>
>
> Parameters=StructNew();
> StructInsert
: Tuesday, January 13, 2004 9:41 PM
To: CF-Talk
Subject: RE: CFScript StructInsert or cfset. Which is faster?
if ur using cfmx, cfscript is no faster, simply a design style choice
fyi
but to answer your question, I would try developing both ways...cfloop
it, lets say 1000 times, throw a tick count
if ur using cfmx, cfscript is no faster, simply a design style choice
fyi
but to answer your question, I would try developing both ways...cfloop
it, lets say 1000
times, throw a tick count @ the top and bottom, count the seconds from
beginning to end
do that a few times, maybe 10 or so, and it
I have a collection of parameters that I keep in a struct. Mostly out of a perceived feeling that this is tidier. I use cfscript for this sort of thing for speed. It occurs to me I should ask Those Who Know... would it be faster to just use plain variables? Or a 2d array?An example is below
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=_javascript_+cookie
s
document.cookie = "cookieName=cookieValue";
Will append a cookie, another option you might want to use is the
"expires" one
Use document.cookie to read all of the cookies, but they're in a
semi-colon separated list
JS c
If all you want to do is redirect based on screen size, use JS as you are
and do a
var x = screen width //pseudo code
if x = 800{
document.location="form800.cfm";
}
else{
document.location="form1024.cfm";
}
Mike
>
>
>
>
>
[Todays Threads]
[This Messag
]
Sent: Friday, December 05, 2003 10:17 AM
To: CF-Talk
Subject: RE: cfscript?
You have to pass the data to the server first
Since you never know which client is running which request, you'd have to
send the data either in the URL, or in a form variable
Most things like this run a "
To be a little more informative
You Can't EASILY
Because JS if client side and CFscript is server side.
To do something like this, you have to plan ahead. You would need to detect
the data with a JS like solution and then pass this data somehow (form, url)
to a server side a
request to the server which alters
things
I'm not sure if JS cookies are easily readable by CF, but that'd be
another option
> -Original Message-
> From: John Ho [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 05, 2003 10:01 AM
> To: CF-Talk
> Subject: cfscript?
You can't
JS is client side
cfscript is server side
-Original Message-
From: John Ho [mailto:[EMAIL PROTECTED]
Sent: 05 December 2003 15:01
To: CF-Talk
Subject: cfscript?
hi all
I have a _javascript_ function checking the size of
window something like this
<br>
function
gt;
}<br>
}<br>
<br>
How do I call this function in CFscript?
Or do you know how to check for the size of window in
CFusionMX. Basicly I need to know what size of window
so I would use the cflocation to load the right form.
For example
__
That's it! Thanks :-)
-Original Message-
From: Heald, Tim [mailto:[EMAIL PROTECTED]
Sent: mardi 18 novembre 2003 15:19
To: CF-Talk
Subject: RE: in cfscript???
You use the arguments array's length to determine how many arguments you
have. When writing functions in CF
ssage-
From: BOUDOT Christian [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 9:10 AM
To: CF-Talk
Subject: in cfscript???
Hi Folks,
Is there any equivalence for the required attribute when the function is
written with ?
function fctFoo(sFoo){
}
thx
Chris
_
[T
o: CF-Talk
Subject: in cfscript???
Hi Folks,
Is there any equivalence for the required attribute when the function is
written with ?
function fctFoo(sFoo){
}
thx
Chris
_
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
Hi Folks,
Is there any equivalence for the required attribute when the function is
written with ?
function fctFoo(sFoo){
}
thx
Chris
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
> }
>
> HTH.
>
> --Ben Doom
>
> Ryan Mitchell wrote:
>
>> > Hello
>> >
>> > I need to loop over a query in cfscript.
>> > I notice when I cfdump the query there is a record number in the left hand
>> > column, how would
What I've always done is loop through the query like a structure of arrays:
for (i = 1; i <= query.recordcount; i = i + 1)
{
do_something_with(query.column[i]);
}
HTH.
--Ben Doom
Ryan Mitchell wrote:
> Hello
>
> I need to loop over a query in cfscript.
> I notice whe
myQuery.myColumn[recordNumber]
Or
myQuery[myColumnVar][recordNumber]
-Original Message-
From: Ryan Mitchell [mailto:[EMAIL PROTECTED]
Sent: Saturday, November 15, 2003 1:43 PM
To: CF-Talk
Subject: Looping through a query in cfscript
Hello
I need to loop over a query in cfscript
Hello
I need to loop over a query in cfscript.
I notice when I cfdump the query there is a record number in the left hand
column, how would I loop using this as the identifier? I usually use cfloop
but this is in the middle of a cfscript block :)
Thanks,
Ryan
[Todays Threads]
[This Message
Improving my knowledge of _javascript_ helped me a lot with CFSCRIPT.
I would learn how functions work.
Learn flow control and conditionals.
Remember you can use cf's built-in functions in cfscript.
Go to cflib.org and study a bunch of UDF
http://tutorial84.easycfm.com/
also, i put together a calendar in cfscript just for the hell of it...
http://charlie.griefer.com/cfscript_calendar.cfm
- Original Message -
From: Gabriel Robichaud
To: CF-Talk
Sent: Friday, October 10, 2003 12:24 PM
Subject: cfscript
Hey out there?
Anyone know of a good resource for CFScript... some documentation would be
really cool!
TIA!!
Gabriel
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
That fixed it - thanks.
>Oh here's the problem:
>
>You are placing strings in your array -- "rsEquipAvail1" is a string. Try it
>without the quotes.
>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
Matthew,
Thank you - that did the trick. I assumed a string, the "name" of the query, was what I needed, but it works perfectly without the quotes.
function timeRes(x) {
myarray = arrayNew(1);
myarray[1] = rsEquipAvail0;
rCount = myarray[x].RecordCount;
// etc.
}
>Oh here's the proble
I suppose rsEquipAvail1 and rsEquipAvail2 are queries?
Then try this
rCount = evaluate(myarray[x] & ".RecordCount);
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
Oh here's the problem:
You are placing strings in your array -- "rsEquipAvail1" is a string. Try it
without the quotes.
-Original Message-
From: Rory Lysaght [mailto:[EMAIL PROTECTED]
Sent: Monday, 6 October 2003 10:45 a.m.
To: CF-Talk
Subject: Dynamic queryname in CFSCR
>What happens if you write:
>
>myQuery = myarray[x];
>
>rCount = myQuery.recordCount
>
>instead of
>
>rCount = myarray[x].RecordCount;
>
Good suggestion, but it generates the same error message on the
rCount = myQuery.recordCount;
line.
[Todays Threads]
[This Message]
[Subscription]
What happens if you write:
myQuery = myarray[x];
rCount = myQuery.recordCount
instead of
rCount = myarray[x].RecordCount;
?
-Original Message-
From: Rory Lysaght [mailto:[EMAIL PROTECTED]
Sent: Monday, 6 October 2003 10:45 a.m.
To: CF-Talk
Subject: Dynamic queryname in CFSCRIPT
I've got a function that needs to check a different query depending on how it's called. But I keep getting this error:
"You have attempted to dereference a scalar variable of type class
java.lang.String as a structure with members. "
The function is evaluating the string properly, but the line "my
g what I want)
>
> -Original Message-
> From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 11, 2003 7:04 PM
> To: CF-Talk
> Subject: Re: CFLINCLUDE in CFSCRIPT
>
> Perfect, thanks. I'll give you credit and a link in the docs to this (
Got that already, thanks. Do you know of any other GetPageContext() pieces that
are floating around? I only remember those 2.
>
> For that matter, I think it's worth pointing out that cflocation and
> GetPageContext().forward("somefile.cfm") are not exactly the same either.
> One's a client-side r
doing what I want)
-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 7:04 PM
To: CF-Talk
Subject: Re: CFLINCLUDE in CFSCRIPT
Perfect, thanks. I'll give you credit and a link in the docs to this (as
well as Charlie credit for his
> > I'm redoing my CFSCRIPT docs and one of the things I'm adding in are
> > all the
> > 'extra' things you can do with it in CFMX. One such thing is a
> > CFLOCATION using
> > GetPageContext().forward("somefile.cfm")
> > I believe
Perfect, thanks. I'll give you credit and a link in the docs to this (as well as
Charlie credit for his CFLOCATION portion).
Are there any solid docs on the GetPageContext() stuff?
> > I'm redoing my CFSCRIPT docs and one of the things I'm adding in are
> > all the
&g
t; Subject: CFLINCLUDE in CFSCRIPT
>
>
> I'm redoing my CFSCRIPT docs and one of the things I'm adding in
> are all the
> 'extra' things you can do with it in CFMX. One such thing is a
> CFLOCATION using
> GetPageContext().forward("somefile.cfm")
>
> I'm redoing my CFSCRIPT docs and one of the things I'm adding in are
> all the
> 'extra' things you can do with it in CFMX. One such thing is a
> CFLOCATION using
> GetPageContext().forward("somefile.cfm")
> I believe that there was a CFINCLUD
I'm redoing my CFSCRIPT docs and one of the things I'm adding in are all the
'extra' things you can do with it in CFMX. One such thing is a CFLOCATION using
GetPageContext().forward("somefile.cfm")
I believe that there was a CFINCLUDE type code as well, but I ca
function cf_param(var_name, default_value) {
if(not isDefined(var_name))
SetVariable(var_name, default_value);
}
- Original Message -
From: "Alexander Sherwood" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, September 11, 2003 1
0 AM
: To: CF-Talk
: Subject: CFSCRIPT equiv. of CFPARAM?
:
:
: Anyway to easily emulate CFPARAM using CFSCRIPT (without
: conditional logic?)
:
: --
: Alex Sherwood
:
:
~|
Archives: http://www.houseoffusion.com/lists.cfm?link
No, but there is a UDF on cflib.org
-Original Message-
From: Alexander Sherwood [mailto:[EMAIL PROTECTED]
Sent: donderdag 11 september 2003 16:30
To: CF-Talk
Subject: CFSCRIPT equiv. of CFPARAM?
Anyway to easily emulate CFPARAM using CFSCRIPT (without conditional
logic?)
--
Alex
Anyway to easily emulate CFPARAM using CFSCRIPT (without conditional logic?)
--
Alex Sherwood
~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe
Raymond and Steven, you are correct by using if(form["qty#k#"] is ""). When writing
CFSCRIPT code, you use the same comparison and assignment operators that you would use
in any CF tag.
To assign a value:
variablename = "value";
To check if equal:
if ( form.somet
ED]
> Sent: Thursday, August 21, 2003 1:51 PM
> To: CF-Talk
> Subject: Quick cfscript if else ?
>
>
> Not done much if something is this, then set this value...
>
> How far off am I? Not seeing a good tutorial directly
> related to this... (ignore //) ...in essence look
Not done much if something is this, then set this value...
How far off am I? Not seeing a good tutorial directly related to this...
(ignore //) ...in essence looking for a blank value and resetting to 0 or
else use the numeric value passed...
//if form["q
Thursday, August 21, 2003 3:51 PM
To: CF-Talk
Subject: Quick cfscript if else ?
Not done much if something is this, then set this value...
How far off am I? Not seeing a good tutorial directly related to this...
(ignore //) ...in essence looking for a blank value and resetting to 0 or
els
:-)
-- Ben Doom
Programmer & General Lackey
Moonbow Software, Inc
: -Original Message-
: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
: Sent: Thursday, August 21, 2003 3:51 PM
: To: CF-Talk
: Subject: Quick cfscript if else ?
:
:
: Not done much if something is this, th
Is there a cflocation equivalent that I can use from within a cfscript block? I can't
see to find anything.
Cedric
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
t [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 05, 2003 3:38 PM
> To: CF-Talk
> Subject: Redirect within cfscript?
>
>
> Is there a cflocation equivalent that I can use from within
> a cfscript block? I can't see to find anything.
>
> I know CFAbort is a tag, and tags can't be used in cfscript.
In general, nearly any CFML tag can now be used within CFSCRIPT, if you're
willing to write a wrapper for it using CFFUNCTION.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (
To: CF-Talk
> Subject: CFAbort in CFScript?
>
>
> I think this is a stupid question, but is there any way to
> end processing of a CF page from within CFScript similar to a CFAbort.
>
> I know CFAbort is a tag, and tags can't be used in cfscript.
> However, there have b
I think this is a stupid question, but is there any way to end processing of
a CF page from within CFScript similar to a CFAbort.
I know CFAbort is a tag, and tags can't be used in cfscript. However, there
have been so many other improvements to CF with the MX release that I
wouldn
> > I've tried that and it's a pain in the arse...
>
> I knew I shouldn't have laid out such a empty statement, but I've tried
> that
> exact UDF before and it threw some crazy errors-but I, of course, have no
> idea what the errors were...I'll see if I can recreate them and let you
> know->
I wo
em and let you
know->
Tyler
-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 11:01 AM
To: CF-Talk
Subject: RE: GetPageContext() function...cfinclude from a cfscript?
Really?
Boy, that was hard. ;) Normally I'd define r
; Sent: Tuesday, July 08, 2003 8:21 AM
> To: CF-Talk
> Subject: RE: GetPageContext() function...cfinclude from a cfscript?
>
>
> I've tried that and it's a pain in the arse...
>
> -Original Message-
> From: Dan G. Switzer, II [mailto:[EMAIL PROTEC
I've tried that and it's a pain in the arse...
-Original Message-
From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 9:26 AM
To: CF-Talk
Subject: RE: GetPageContext() function...cfinclude from a cfscript?
If you want an include function for use
If you want an include function for use w/CFSCRIPT, in CFMX you could just
create a UDF that uses the tag.
-Dan
> -Original Message-
> From: Tyler Silcox [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 08, 2003 8:56 AM
> To: CF-Talk
> Subject: GetPageContext() function..
ources etc.
WG
-Original Message-
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED]
Sent: 08 July 2003 14:06
To: CF-Talk
Subject: RE: GetPageContext() function...cfinclude from a cfscript?
I think, there are probably people who know a shit load more about than
that!
-Origin
x27;s available from java.sun.com. Alternatively, look
for any JSP tutorial that mentions the context.
That should get you on your way.
André
-Original Message-
From: Tyler Silcox [mailto:[EMAIL PROTECTED]
Sent: 08 July 2003 13:56
To: CF-Talk
Subject: GetPageContext() function...cfinclude fro
I think, there are probably people who know a shit load more about than
that!
-Original Message-
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED]
Sent: 08 July 2003 14:03
To: CF-Talk
Subject: RE: GetPageContext() function...cfinclude from a cfscript?
I believe it is used for
Subject: GetPageContext() function...cfinclude from a cfscript?
Could someone please explain what GetPageContext() does within CFMX? I just
came across it in one of the other posts and it got me thinking about using
GetPageContext().include("somefile.cfm") for cfincludes within cfscrip
Could someone please explain what GetPageContext() does within CFMX? I just
came across it in one of the other posts and it got me thinking about using
GetPageContext().include("somefile.cfm") for cfincludes within cfscripts,
but it doesn't seem to share the same memory/variables (which, I guess,
perfect thanks!!
Nagy, Daniel J wrote:
> % = MOD
>
> Int() will return a float as a whole number.
>
> -Original Message-
> From: Gabriel Robichaud [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 26, 2003 1:56 PM
> To: CF-Talk
> Subject: CFSCRIPT
>
% = MOD
Int() will return a float as a whole number.
-Original Message-
From: Gabriel Robichaud [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 1:56 PM
To: CF-Talk
Subject: CFSCRIPT
Hey folks.
questions regarding scripting.
I want to see YY as 0 not 0.25
and i want to use
Have you tried using MOD instead of %?
- Original Message -
From: "Gabriel Robichaud" <[EMAIL PROTECTED]>
and i want to use the modulus operator (or modulo, dont know what to
call it in english) so i can get the remainder. I dont know what the
operator is for cf
Hey folks.
questions regarding scripting.
I want to see YY as 0 not 0.25
and i want to use the modulus operator (or modulo, dont know what to
call it in english) so i can get the remainder. I dont know what the
operator is for cfscript. obvious answer is % but that doesnt work.
So how do i
Another point to consider is that sometimes you have no choice but to use
the pound signs.
This one bit me recently.
sets the Form.date variable to
"now()".
I ended up putting the quotes and the pound signs back in.
As for the previous question on doing a cfparam inside of cfscrip
> Do not enclose complex expressions, such as 1 + 2, with pound signs.
Curiously enough you can do this with CFMX.
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusi
ot;Matthew Walker" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, June 19, 2003 10:23 PM
Subject: RE: CFSCRIPT syntax
> Hi Mark,
>
> Just to add to Raymond's comments,
>
> I think the confusion about hashes and quotes comes about fr
ashes when inserting an expression into a string or cfoutputting
it More or less.
> 4) Can a CFPARAM statement be written in CFSCRIPT? If so, how?
Take a look at this udf:
http://www.cflib.org/udf.cfm?ID=144
~|
Archiv
quot;;
Don't use the pound signs, you don't need them:
session.ecom.admin = url.admin;
> 3) With numeric values, do I need to surround with quotes, ie:
> SESSION.ecom.totalCost = "0";
No.
> 4) Can a CFPARAM statement be written in CFSCRIPT? If so, how?
No
Hi All,
I'm going through some code and converting CFSET commands to CFSCRIPT -- a
couple of syntax questions:
1) Where I have a
Should I surround the var with quotes or not? Ie:
SESSION.ecom.storeVar = "SESSION.ecom.s";
2) Similarly, where I have a
Should I surrou
601 - 700 of 1138 matches
Mail list logo