RE: cfloop and cfscript

2004-06-28 Thread Jean-Marc Bottin
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

Re: cfloop and cfscript

2004-06-28 Thread Joe Rinehart
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 &

Re: cfloop and cfscript

2004-06-28 Thread Thomas Chiverton
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

cfloop and cfscript

2004-06-28 Thread jean-marc bottin
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

RE: Add mappings via cfscript

2004-05-19 Thread John Beynon
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

Re: Add mappings via cfscript

2004-05-19 Thread Jake .
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]

RE: Add mappings via cfscript

2004-05-19 Thread John Beynon
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

Add mappings via cfscript

2004-05-18 Thread Burns, John D
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

RE: cfscript and methods

2004-05-17 Thread Barney Boisvert
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

RE: cfscript and methods

2004-05-17 Thread Dave Carabetta
>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

cfscript and methods

2004-05-17 Thread Cutter (CF-Talk)
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

Re: cfscript question

2004-05-07 Thread Claude Schneegans
>>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

RE: cfscript question

2004-05-07 Thread Barney Boisvert
> > 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]

RE: cfscript question

2004-05-07 Thread Raymond Camden
> > 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

Re: cfscript question

2004-05-07 Thread Jim McAtee
- 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. >

RE: cfscript question

2004-05-07 Thread Raymond Camden
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

RE: cfscript question

2004-05-07 Thread Nathan Mische
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

RE: cfscript question

2004-05-07 Thread Barney Boisvert
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

cfscript question

2004-05-07 Thread Jim McAtee
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

RE: Query Output in a cfscript

2004-04-03 Thread Pascal Peters
> -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.

Re: Query Output in a cfscript

2004-03-28 Thread Chris Wigginton
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

RE: Query Output in a cfscript

2004-03-28 Thread Dwayne Cole
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

RE: Query Output in a cfscript

2004-03-28 Thread Pascal Peters
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 >

Re: Query Output in a cfscript

2004-03-27 Thread Cutter (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 >

Re: Query Output in a cfscript

2004-03-27 Thread Cutter (CF-Talk)
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

RE: Query Output in a cfscript

2004-03-27 Thread Tim Heald
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

Query Output in a cfscript

2004-03-27 Thread Cutter (CF-Talk)
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

RE: CFScript StructInsert or cfset. Which is faster?

2004-01-14 Thread Dave Watts
> 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

RE: CFScript StructInsert or cfset. Which is faster?

2004-01-14 Thread Hugo Ahlenius
-- | 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 |

Re: CFScript StructInsert or cfset. Which is faster?

2004-01-13 Thread Matt Liotta
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

RE: CFScript StructInsert or cfset. Which is faster?

2004-01-13 Thread Tony Weeg
: 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

RE: CFScript StructInsert or cfset. Which is faster?

2004-01-13 Thread Tony Weeg
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

CFScript StructInsert or cfset. Which is faster?

2004-01-13 Thread Matt Robertson
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

RE: cfscript?

2003-12-05 Thread Philip Arnold
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

RE: cfscript?

2003-12-05 Thread Tangorre, Michael
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

RE: cfscript?

2003-12-05 Thread Tony Weeg
] 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 "

RE: cfscript?

2003-12-05 Thread Ian Skinner
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

RE: cfscript?

2003-12-05 Thread Philip Arnold
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?

RE: cfscript?

2003-12-05 Thread d.a.collie
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

cfscript?

2003-12-05 Thread John Ho
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                   __

RE: in cfscript???

2003-11-18 Thread BOUDOT Christian
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

RE: in cfscript???

2003-11-18 Thread Heald, Tim
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

RE: in cfscript???

2003-11-18 Thread Pascal Peters
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]

in cfscript???

2003-11-18 Thread BOUDOT Christian
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]

Re: Looping through a query in cfscript

2003-11-15 Thread Ryan Mitchell
> } > > 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

Re: Looping through a query in cfscript

2003-11-15 Thread Ben Doom
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

RE: Looping through a query in cfscript

2003-11-15 Thread Philip Arnold
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

Looping through a query in cfscript

2003-11-15 Thread Ryan Mitchell
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

RE: cfscript

2003-10-10 Thread Owens, Howard
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

Re: cfscript

2003-10-10 Thread Charlie Griefer
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

cfscript

2003-10-10 Thread Gabriel Robichaud
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]

Re:Dynamic queryname in CFSCRIPT

2003-10-06 Thread Rory Lysaght
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]

Re:Dynamic queryname in CFSCRIPT

2003-10-06 Thread Rory Lysaght
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

Re: Dynamic queryname in CFSCRIPT

2003-10-05 Thread Claude Schneegans
I suppose rsEquipAvail1 and rsEquipAvail2 are queries? Then try this rCount = evaluate(myarray[x] & ".RecordCount); [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

RE: Dynamic queryname in CFSCRIPT

2003-10-05 Thread Matthew Walker
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

Re:Dynamic queryname in CFSCRIPT

2003-10-05 Thread Rory Lysaght
>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]

RE: Dynamic queryname in CFSCRIPT

2003-10-05 Thread Matthew Walker
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

Dynamic queryname in CFSCRIPT

2003-10-05 Thread Rory Lysaght
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

Re: CFLINCLUDE in CFSCRIPT

2003-09-11 Thread Michael Dinowitz
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 (

Re: CFLINCLUDE in CFSCRIPT

2003-09-11 Thread Michael Dinowitz
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

RE: CFLINCLUDE in CFSCRIPT

2003-09-11 Thread Tyler Silcox
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

Re: CFLINCLUDE in CFSCRIPT

2003-09-11 Thread Dave Carabetta
> > 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

Re: CFLINCLUDE in CFSCRIPT

2003-09-11 Thread Michael Dinowitz
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

RE: CFLINCLUDE in CFSCRIPT

2003-09-11 Thread Barney Boisvert
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") >

Re: CFLINCLUDE in CFSCRIPT

2003-09-11 Thread Matt Liotta
> 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

CFLINCLUDE in CFSCRIPT

2003-09-11 Thread Michael Dinowitz
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

Re: CFSCRIPT equiv. of CFPARAM?

2003-09-11 Thread Neculai Macarie
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

RE: CFSCRIPT equiv. of CFPARAM?

2003-09-11 Thread Ben Doom
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

RE: CFSCRIPT equiv. of CFPARAM?

2003-09-11 Thread Pascal Peters
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

CFSCRIPT equiv. of CFPARAM?

2003-09-11 Thread Alexander Sherwood
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

Quick cfscript if else ?

2003-08-21 Thread Mike Mertsock
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

RE: Quick cfscript if else ?

2003-08-21 Thread Raymond Camden
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

Quick cfscript if else ?

2003-08-21 Thread webmaster
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

RE: Quick cfscript if else ?

2003-08-21 Thread DURETTE, STEVEN J (AIT)
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

RE: Quick cfscript if else ?

2003-08-21 Thread Ben Doom
:-) -- 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

Redirect within cfscript?

2003-08-14 Thread Cedric Villat
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:

RE: Redirect within cfscript?

2003-08-10 Thread Raymond Camden
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. >

RE: CFAbort in CFScript?

2003-07-14 Thread Dave Watts
> 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: (

RE: CFAbort in CFScript?

2003-07-14 Thread Raymond Camden
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

CFAbort in CFScript?

2003-07-14 Thread Shawn Grover
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

RE: GetPageContext() function...cfinclude from a cfscript?

2003-07-08 Thread Dan G. Switzer, II
> > 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

RE: GetPageContext() function...cfinclude from a cfscript?

2003-07-08 Thread Tyler Silcox
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

RE: GetPageContext() function...cfinclude from a cfscript?

2003-07-08 Thread Raymond Camden
; 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

RE: GetPageContext() function...cfinclude from a cfscript?

2003-07-08 Thread Tyler Silcox
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

RE: GetPageContext() function...cfinclude from a cfscript?

2003-07-08 Thread Dan G. Switzer, II
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..

RE: GetPageContext() function...cfinclude from a cfscript?

2003-07-08 Thread webguy
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

RE: GetPageContext() function...cfinclude from a cfscript?

2003-07-08 Thread Andre Mohamed
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

RE: GetPageContext() function...cfinclude from a cfscript?

2003-07-08 Thread Robertson-Ravo, Neil (RX)
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

RE: GetPageContext() function...cfinclude from a cfscript?

2003-07-08 Thread Robertson-Ravo, Neil (RX)
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

GetPageContext() function...cfinclude from a cfscript?

2003-07-08 Thread Tyler Silcox
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,

Re: CFSCRIPT

2003-06-26 Thread Gabriel Robichaud
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 >

RE: CFSCRIPT

2003-06-26 Thread Nagy, Daniel J
% = 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

Re: CFSCRIPT

2003-06-26 Thread CF Dude
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

CFSCRIPT

2003-06-26 Thread Gabriel Robichaud
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

RE: CFSCRIPT syntax

2003-06-20 Thread DURETTE, STEVEN J (AIT)
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

Re: CFSCRIPT syntax

2003-06-20 Thread Matthew Walker
> 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

Re: CFSCRIPT syntax

2003-06-20 Thread Calvin Ward
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

RE: CFSCRIPT syntax

2003-06-19 Thread Matthew Walker
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

RE: CFSCRIPT syntax

2003-06-19 Thread Raymond Camden
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

CFSCRIPT syntax

2003-06-19 Thread Mark Leder
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

<    2   3   4   5   6   7   8   9   10   11   >