Re: error in cfscript

2007-02-02 Thread daniel kessler
okay - thanks. That's what it seemed to be saying, but I hadn't encountered that before. Is that an ECMA thing? I didn't think it was that way in javascript. >All var scoped variables must be declared before any other code. The >"if" block after the first variable is what's causing the error.

Re: error in cfscript

2007-02-02 Thread Christopher Jordan
r > local=structNew()" at the top, and I can dynamically assign > "local.the_day=1" later on. > > Oblio > > > > -Original Message- > From: daniel kessler [mailto:[EMAIL PROTECTED] > Sent: Friday, February 02, 2007 10:58 AM > To: CF-Talk > Subject:

Re: error in cfscript

2007-02-02 Thread Charlie Griefer
all var scoped variables must be at the top of a function. you're var'ing "the_type", then you're doin ga conditional...then more var'ing. that conditional either has to come after the vars...or var everything to an empty string (or 0) at the top...then set later. On 2/2/07, daniel kessler <[EMA

RE: error in cfscript

2007-02-02 Thread Doug Bezona
All var scoped variables must be declared before any other code. The "if" block after the first variable is what's causing the error. > -Original Message- > From: daniel kessler [mailto:[EMAIL PROTECTED] > Sent: Friday, February 02, 2007 10:58 AM > To: CF-Talk &

RE: error in cfscript

2007-02-02 Thread Leitch, Oblio
02, 2007 10:58 AM To: CF-Talk Subject: error in cfscript I'm receiving an error that I don't understand: Local variable the_day on line 10 must be grouped at the top of the function body. funct

error in cfscript

2007-02-02 Thread daniel kessler
I'm receiving an error that I don't understand: Local variable the_day on line 10 must be grouped at the top of the function body. function makeDate(a_day,a_month,a_year,a_type){ var the_type = "begin";

Re: CFScript inside a CFC

2006-12-18 Thread Christopher Jordan
st posted that so you'd know where I got my information. Phillip >> *has* actually decompiled the JIT code and seen that for complex >> examples that CFScript is faster, because it's closer in resemblance to >&

Re: CFScript inside a CFC

2006-12-18 Thread Charlie Griefer
curious to know what CF platform these tests were conducted on. On 12/18/06, Christopher Jordan <[EMAIL PROTECTED]> wrote: > Jon, > > I just posted that so you'd know where I got my information. Phillip > *has* actually decompiled the JIT code and seen that for complex &

Re: CFScript inside a CFC

2006-12-18 Thread Christopher Jordan
Jon, I just posted that so you'd know where I got my information. Phillip *has* actually decompiled the JIT code and seen that for complex examples that CFScript is faster, because it's closer in resemblance to the byte code that ColdFusion ultimately parses. Phillip just stated bet

Re: CFScript inside a CFC

2006-12-18 Thread Jon Gunnip
Chris, I have not done any benchmarks on cfscript vs. tags, but if there were significant performance differences, I would expect to have heard of these differences by now. Phillip's argument is that there is a difference in compiled code, but I did not see any reason to conclude that the

Re: CFScript inside a CFC

2006-12-17 Thread Christopher Jordan
Thanks Charlie and James for the syntax help! :o) Chris James Holmes wrote: > Define another cffunction inside your component, or use the script > without the function declaration (i.e. use the cffunction and > cfargument tags to declare the function then start the cfscript that >

Re: CFScript inside a CFC

2006-12-17 Thread Christopher Jordan
L PROTECTED]> wrote: > Nope. Your example may be immeasurable, but with more advanced > functionality, that is not the case. > > Obviously, ColdFusion is middle ware for your middle ware. It is a > collection of servlets that consolidate Java functionality into one > tidy c

Re: CFScript inside a CFC

2006-12-16 Thread Charlie Griefer
ons (IMO) just because of the tag. Now, you -could- create your with your tags and write the rest of the function in . However, I don't care for that myself. It's just a matter of preference, but as somebody else has already pointed out, I like to see consistency in the code. Seeing c

Re: CFScript inside a CFC

2006-12-16 Thread James Holmes
Define another cffunction inside your component, or use the script without the function declaration (i.e. use the cffunction and cfargument tags to declare the function then start the cfscript that uses those arguments). Do the return with a cfreturn. On 12/17/06, Christopher Jordan <[EM

Re: CFScript inside a CFC

2006-12-16 Thread Christopher Jordan
Thanks Mark. Can you (or anyone really), show me the proper way to do this? Cheers, Chris Mark A Kruger wrote: > Chris, > > I'd say our problem isn't cfscript (which I use routinely inside of a > cffunction tag). You problem is that you are declaring a functions inside of &

Re: CFScript inside a CFC

2006-12-16 Thread Jon Gunnip
Chris, I would be wary of using cfscript just for supposed performance gains over tags. My understanding is that those gains were eliminated (or reduced to the point of insignificance) in CF 6.x and 7.x. Here are what I see as the pros and cons of cfscript. These points are largely a matter of

RE: CFScript inside a CFC

2006-12-15 Thread Mark A Kruger
Chris, I'd say our problem isn't cfscript (which I use routinely inside of a cffunction tag). You problem is that you are declaring a functions inside of a function. -mark -Original Message- From: Christopher Jordan [mailto:[EMAIL PROTECTED] Sent: Friday, December 15, 2006

CFScript inside a CFC

2006-12-15 Thread Christopher Jordan
Hi folks, I've got a CFC with a function in it that contains CFScript tags. Like this: function MyFunction(arg) { return arg; } BlueDragon seems to have absolutely no problems with this, but my host's CFMX box pukes over thi

Re: cfscript and colors

2006-10-17 Thread Richard White
Hi, i managed to get it to read the colours by using the function inputBaseN("99ff99", 16) thanks ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, d

Re: cfscript and colors

2006-10-16 Thread Richard White
oh right, brilliant, thanks very much ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionaut

RE: cfscript and colors

2006-10-16 Thread Doug Bezona
Use cfimport to load JSP Tag libraries and then it's quite easy to work with them. The docs cover it fairly well. -Original Message- From: "Richard White" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: 10/16/06 7:37 PM Subject: Re: cfscript and colors its js

Re: cfscript and colors

2006-10-16 Thread Richard White
its jsp. is it easy to use .jsp files with coldfusion. I am not sure how the files fit in or how to get them to work. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion informat

RE: cfscript and colors

2006-10-16 Thread Dave Watts
> I have started to use chartdirector which is a charting tool. > They have told me that it can be integrated directly in > cfscript and provided me with some very simple examples. > However, 1 major factor is obviously to set the colours of > the charts but seeing as this i

Re: cfscript and colors

2006-10-16 Thread Richard White
oh right, lol well i think i have been fiddled then :) I have started to use chartdirector which is a charting tool. They have told me that it can be integrated directly in cfscript and provided me with some very simple examples. However, 1 major factor is obviously to set the colours of the

RE: cfscript and colors

2006-10-16 Thread Dave Watts
27;s not a simple question at all! There's no such thing as colors in CFSCRIPT. What exactly are you trying to do? Where did that line of code come from? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at

cfscript and colors

2006-10-16 Thread Richard White
hi, a very simple question. But have been tearing my hair out :| how do you incorporate hexidecimal colors into e.g. i have been given a line of code m.addZone(0, 50, 0x99ff99); i have tried the 0x99ff99 as &h99ff99 and lots of ways. i would appreciate your help thanks

RE: Javascript vs. cfscript

2006-09-25 Thread Dan G. Switzer, II
>> the only way i can make it actually display an alert within >> javascript is if i do the following code: >> >> alert("#student.name#"); >> >> if i do the following it doesnt work: >> >> alert(#student.name#); >> >> am i doing something wrong First, in order to get the second example to work, yo

Re: Javascript vs. cfscript

2006-09-25 Thread Richard White
oh i see, sorry i mis-read the post above it, i didnt see the whole alert was surrounded by tags, thanks ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your p

RE: Javascript vs. cfscript

2006-09-25 Thread Sandra Clark
Javascript vs. cfscript the only way i can make it actually display an alert within javascript is if i do the following code: alert("#student.name#"); if i do the following it doesnt work: alert(#student.name#); am i d

Re: Javascript vs. cfscript

2006-09-25 Thread Jon Clausen
> the only way i can make it actually display an alert within > javascript is if i do the following code: > > alert("#student.name#"); > > if i do the following it doesnt work: > > alert(#student.name#); > > am i doing something wrong Not at all. You can't use a string in Javascript without sur

Re: Javascript vs. cfscript

2006-09-25 Thread Richard White
the only way i can make it actually display an alert within javascript is if i do the following code: alert("#student.name#"); if i do the following it doesnt work: alert(#student.name#); am i doing something wrong ~| Introdu

RE: Javascript vs. cfscript

2006-09-22 Thread Eric Roberts
As long as it is defined before the JavaScript is called...you can reference the structure just as you would in CF. Eric -Original Message- From: Richard White [mailto:[EMAIL PROTECTED] Sent: Thursday, 21 September 2006 13:36 To: CF-Talk Subject: Re: Javascript vs. cfscript i am

Re: Javascript vs. cfscript

2006-09-22 Thread Scott Stroz
You can make your CF structure avcailable in JS by using the toScript() function. This will replicate any CF variable, including complex data types like structures and arrays into the equivalent JavaScript data types. Granted, you still can't use the JS to interact with CF without AJAX, but if all

RE: Javascript vs. cfscript

2006-09-22 Thread Eric Roberts
;/cfset x=1/"); / /script/ What you will get is the text of the tag and not the actual cfset... -Original Message- From: Richard White [mailto:[EMAIL PROTECTED] Sent: Thursday, 21 September 2006 14:24 To: CF-Talk Subject: Re: Javascript vs. cfscript hi, thanks for your reply. I d

RE: Javascript vs. cfscript

2006-09-22 Thread Eric Roberts
Not sure I agree with that since cfscript and cfml essentially do the same thing whereas javascript adds functionality to a purely formatting oriented language (html)... Eric -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Thursday, 21 September 2006 11:55 To

RE: Javascript vs. cfscript

2006-09-21 Thread Bobby Hartsfield
You cant actually use the CF VARIABLE in Javascript but you can use its value (if that makes sense) alert("#student.name#"); -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.6/453 - Release Date: 9/20/2006 ~~

Re: Javascript vs. cfscript

2006-09-21 Thread Richard White
>you're still overlooking the client/server issue. > >when you create your structure, you're doing it on the server. that >has nothing to do with the client until you make it have somethign to >do with the client. > >e.g. > > > > > > var studentName = "#students.name#"; >

Re: Javascript vs. cfscript

2006-09-21 Thread Charlie Griefer
you're still overlooking the client/server issue. when you create your structure, you're doing it on the server. that has nothing to do with the client until you make it have somethign to do with the client. e.g. var studentName = "#students.name#"; alert(stud

Re: Javascript vs. cfscript

2006-09-21 Thread Richard White
> stop thinking in terms of javascript vs cfscript and start thinking > in > terms of client versus server. > > any ColdFusion (be it CFML or cfscript) is going to execute on the > server. by the time the browser renders the page, any and all CF > processing is long sin

Re: Javascript vs. cfscript

2006-09-21 Thread Richard White
hi, thanks for your reply. I dont really understand how this works, i tried to use the code you supplied but it didnt do as expected. can i not create a variable in a cfset tag and then use it in the javascript. if i cant do this how can i get around it? i tried playing around with the code tha

Re: Javascript vs. cfscript

2006-09-21 Thread Charlie Griefer
stop thinking in terms of javascript vs cfscript and start thinking in terms of client versus server. any ColdFusion (be it CFML or cfscript) is going to execute on the server. by the time the browser renders the page, any and all CF processing is long since done. you can "integrate"

RE: Javascript vs. cfscript

2006-09-21 Thread Matt Quackenbush
Matt Quackenbush [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 1:50 PM To: CF-Talk Subject: RE: Javascript vs. cfscript Javascript is client-side. Cfscript is server-side. They do NOT communicate with each other. The only way to get javascript to talk to CF is to use AJAX. -Ori

RE: Javascript vs. cfscript

2006-09-21 Thread Matt Quackenbush
Javascript is client-side. Cfscript is server-side. They do NOT communicate with each other. The only way to get javascript to talk to CF is to use AJAX. -Original Message- From: Richard White [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 1:36 PM To: CF-Talk Subject

Re: Javascript vs. cfscript

2006-09-21 Thread Richard White
document.getElementByID(...)... therefore i was wondering it is it possible to combine the 2 together, or whether i maybe have create a cfscript function and a javascript function and send calls between them. thanks ~| Introducing

Re: Javascript vs. cfscript

2006-09-21 Thread Claude Schneegans
>>just wondering if there was much of a difference between cfscript and javascript. In other words, cfscript is to CFML what javascript is to HTML. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Pleas

Re: Javascript vs. cfscript

2006-09-21 Thread Richard White
that makes alot of sense, thanks for your help :) ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://w

Re: Javascript vs. cfscript

2006-09-21 Thread D F
cfscript is just a way to use the coldfusion language in script form. Javascript as stated before runs on the users browser generally speaking. And so you use that primarily for user only functions ( if we dont count asyncronous calls with the request object etc

Re: Javascript vs. cfscript

2006-09-21 Thread James Holmes
cfscript runs on the server, driving ColdFusion. Javascript runs on the client - after CF has done its job. On 9/21/06, Richard White <[EMAIL PROTECTED]> wrote: > hi, i am new to coldfusion, in fact even scripting, and just wondering if > there was much of a difference between

Javascript vs. cfscript

2006-09-21 Thread Richard White
hi, i am new to coldfusion, in fact even scripting, and just wondering if there was much of a difference between cfscript and javascript. It appears that i can do almost anything i need to do in javascript. Is there any reason why you would need to use cfscript instead of javascript. thanks

Re: cfscript equivalent for cfthrow

2006-03-30 Thread Jon Gunnip
Oleg, We have a set of user-defined functions that mimic CF functions not available in CFScript that we include in many of our applications. For example, we define throw(), throwType(), and rethrow(): Jon On 3/29/06, Oleg Gunkin <[EM

RE: cfscript equivalent for cfthrow

2006-03-29 Thread Dave Watts
> What's the equivalent to cfthrow inside cfscript? > > try{ > ... > }catch(Any e){ > //Throw new exception > } It's exactly that - try and catch: http://livedocs.macromedia.com/coldfusion/7/htmldocs/0978.htm#1161053 Dave Watts, CTO, Fig Leaf

cfscript equivalent for cfthrow

2006-03-29 Thread Oleg Gunkin
What's the equivalent to cfthrow inside cfscript? try{ ... }catch(Any e){ //Throw new exception } -- Oleg Gunkin Email: [EMAIL PROTECTED] Phone: (604) 666-9392 Emerging Technologies / Pacific Web Services Information Technology Services Public Works and Government Services C

Re: cfscript or cfinvoke

2006-02-28 Thread Josh Nathanson
That's what is cool about CF, there are multiple ways to skin the cat. I like plain old cfinvoke as it seems the most intuitive to me. -- Josh - Original Message - From: "Dave Watts" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Tuesday, February 28, 2006

RE: cfscript or cfinvoke

2006-02-28 Thread Dave Watts
&argument=argument > call it through flash remoting > call it through flash remoting variants such as Flex call it > through an event gateway > > That's 9... are there any more? You can use any function within a tag or within a CFSCRIPT block, so I don't really thin

Re: cfscript or cfinvoke

2006-02-28 Thread Nathan Strutz
ough flash remoting variants such as Flex call it through an event gateway That's 9... are there any more? -nathan strutz http://www.dopefly.com/ On 2/28/06, Aaron Rouse <[EMAIL PROTECTED]> wrote: > > I use either a CFSCRIPT or CFSET, it just depends on where I am using it. > M

Re: cfscript or cfinvoke

2006-02-28 Thread Aaron Rouse
I use either a CFSCRIPT or CFSET, it just depends on where I am using it. Most of the time I do the CFSCRIPT and with bother I use the CreateObject() function. I do it more out of habbit, I think the CF5 days(which we still live on some servers here) got me stuck on using CFSCRIPT a lot. Plus I

Re: cfscript or cfinvoke

2006-02-28 Thread James Holmes
I use the third option - a cfset tag. On 2/28/06, Mark Flewellen <[EMAIL PROTECTED]> wrote: > What is the best method or easiest method for calling component methods. > > At present i use the cfinvoke way of doing things, but i see a lot of people > use cfscript instead

Re: cfscript or cfinvoke

2006-02-28 Thread Robert Everland III
I use cfscript because it's much more similar in syntax and look to other languages, javascript, java, c, c# . This way I don't go crazy when I switch between languages. Back in CF 5 days it used to be faster to do it this way, but not n

cfscript or cfinvoke

2006-02-28 Thread Mark Flewellen
What is the best method or easiest method for calling component methods. At present i use the cfinvoke way of doing things, but i see a lot of people use cfscript instead to do it, is there some reason for this? less code involved maybe? Mark

Re: CFScript Quick Reference Guide?

2006-01-23 Thread Brandon Harper
On 1/23/06, Charlie Griefer <[EMAIL PROTECTED]> wrote: > > any specific questions that we can take a shot at tho? > I know CFScript just fine so I don't have any questions about it, I was just looking for an old "Quick Start" guide that I used to have-- but thanks.

Re: CFScript Quick Reference Guide?

2006-01-23 Thread Michael Traher
how about http://livedocs.macromedia.com/coldfusion/7/htmldocs/0970.htm#1106683 ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230247 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: ht

RE: CFScript Quick Reference Guide?

2006-01-23 Thread Dave Watts
> A Java programmer I work with is working on integrating > something in Java to CF and keeps asking me control structure > questions about CFScript. I've googled for the last 15 > minutes without any luck finding it unfortunately. Any help > would be appreciated. Th

RE: CFScript Quick Reference Guide?

2006-01-23 Thread Jim Davis
> -Original Message- > From: Charlie Griefer [mailto:[EMAIL PROTECTED] > Sent: Monday, January 23, 2006 1:29 PM > To: CF-Talk > Subject: Re: CFScript Quick Reference Guide? > > i remember the doc you're referring to...i used to have it printed > out, but don&#

Re: CFScript Quick Reference Guide?

2006-01-23 Thread Charlie Griefer
a PDF which was a quick reference to CFScript. It > was basically a quick and dirty two page overview which showed the > various control structures available in CFScript. I've not needed it > in quite a long time and don't seem to have it around any longer. > That said, I wa

CFScript Quick Reference Guide?

2006-01-23 Thread Brandon Harper
Some time ago I had a PDF which was a quick reference to CFScript. It was basically a quick and dirty two page overview which showed the various control structures available in CFScript. I've not needed it in quite a long time and don't seem to have it around any longer. That s

RE: CFSCRIPT Question

2006-01-03 Thread Andy McShane
Thanks all for your feedback, this has definitely made me think again about the use of cfscript. I just suppose it is a comfort thing so while it is not detrimental I shall still use it. Thanks again. -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: 02 January 2006 19

RE: CFSCRIPT Question

2006-01-02 Thread Dave Watts
> I was under the impression that there was a performance gain > with cfscript, is that not the case? Is there no benefit to > using cfscript? I haven't been able to determine any significant performance change one way or the other with CFMX. There may have been performance differ

RE: CFSCRIPT Question

2006-01-02 Thread Bobby Hartsfield
I think the benefit was always a SLIGHT performance increase. I don't know that it was ever actually processed faster than a normal tag based method but 99.9% of the time, it takes less code in cfscript to get the job done which makes for a smaller file size in the end which WOU

Re: CFSCRIPT Question

2006-01-02 Thread Owner, Three Ravens Consulting
I am not aware of any benefit other than personal preference... Eric On Mon, 2 Jan 2006 11:38:27 - "Andy McShane" <[EMAIL PROTECTED]> wrote: > I was under the impression that there was a performance >gain with cfscript, > is that not the case? Is there no be

Re: CFSCRIPT Question

2006-01-02 Thread Charlie Griefer
t syntax better than tags. Some find it easier to read. I think, at the very least, if you're setting a ton of variables, cfscript is a bit quicker to type out. varA = "foo1"; varB = "foo2"; varC = "foo3"; without having to type out the 'cfset' ex

RE: CFSCRIPT Question

2006-01-02 Thread Andy McShane
I was under the impression that there was a performance gain with cfscript, is that not the case? Is there no benefit to using cfscript? -Original Message- From: Aaron Rouse [mailto:[EMAIL PROTECTED] Sent: 30 December 2005 19:03 To: CF-Talk Subject: Re: CFSCRIPT Question Probably not

Re: CFSCRIPT Question

2005-12-30 Thread Aaron Rouse
Probably not, could be debated that it was on older versions of CF. I personally am a cfscript nazi, use it a lot more than I really should. On 12/30/05, Ben Doom <[EMAIL PROTECTED]> wrote: > > Is it ever actually necessary? :

Re: CFSCRIPT Question

2005-12-30 Thread Ben Doom
Is it ever actually necessary? :-) --Ben Adrocknaphobia wrote: > Sounds like you are using cfscript unnecessarily. > > -Adam > > On 12/30/05, Andy Mcshane <[EMAIL PROTECTED]> wrote: > >>>>how do I call a stored procedure from within cfscript? >&

Re: CFSCRIPT Question

2005-12-30 Thread Adrocknaphobia
Sounds like you are using cfscript unnecessarily. -Adam On 12/30/05, Andy Mcshane <[EMAIL PROTECTED]> wrote: > >> how do I call a stored procedure from within cfscript? > > > >Wrap it in a tag and call it as a function. > > > >Paul > > Now I f

Re: CFSCRIPT Question

2005-12-30 Thread Andy Mcshane
>> how do I call a stored procedure from within cfscript? > >Wrap it in a tag and call it as a function. > >Paul Now I feel stupid, knew it would be something simple! Thanks. ~| Logware (www.logware.us): a

RE: CFSCRIPT Question

2005-12-30 Thread Snake
I was sure I read that tags were allowed inside cfscript blocks somewhere, but it doesn't appear to work. -Original Message- From: Andy Mcshane [mailto:[EMAIL PROTECTED] Sent: 30 December 2005 10:46 To: CF-Talk Subject: CFSCRIPT Question I have a large block of cfscript that I now

RE: CFSCRIPT Question

2005-12-30 Thread Paul Vernon
> how do I call a stored procedure from within cfscript? Wrap it in a tag and call it as a function. Paul ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffu

CFSCRIPT Question

2005-12-30 Thread Andy Mcshane
I have a large block of cfscript that I now have to add a stored procedure call into the middle of. I normally use cfstoredproc elsewhere but how do I call a stored procedure from within cfscript? ~| Logware (www.logware.us

CFScript acting single-threaded

2005-12-22 Thread Adrian Showater
Thanks for the explanation. The loop endpoint being processed multiple times is I'm sure the sulprit, and would explain why the loop would break out after folowing one string to its conclusion. I unfortunatly deleted the CFSCRIPT syntax or I would gladly post the example, but thanks fo

Re: CFScript acting single-threaded

2005-12-21 Thread Barney Boisvert
There are some subtle differences between CFSCRIPT constructs and their "equivalent" tag-based constructs. I'd wager that's the culprit. The usual suspect: the endpoint of CFLOOP is evaluated once when CFLOOP runs initially, while the endpoint of a CFSCRIPT for loop is eval

CFScript acting single-threaded

2005-12-21 Thread Adrian Showater
Has anyone had issues with cfscript syntax where it doesn't function correctly? I had an issue in a CFC where I was looping through an array and then making recursive method calls to the same method doing the looping. The loop was supposed to make a call for every item in the array, but it

Re: cfscript Common Functions and Best Practices

2005-12-08 Thread Larry Lyons
>Setting commonly used functions to a 'permanent' memory scope such as server >or application is a good idea. A better one would be to create a CFC that >contains the common functions as well as common data and store that CFC in >the memory scope. How would that work under a clustered environme

Re: cfscript Common Functions and Best Practices

2005-12-07 Thread Ryan Guill
No problem, let me know if you have any questions. On 12/7/05, Ben Nadel <[EMAIL PROTECTED]> wrote: > Ryan, > > I appreciate the response. I am definitely interested in at the very least > taking a look at how it works, as I am very new to OOP and very interested > in how you all get things workin

RE: cfscript Common Functions and Best Practices

2005-12-07 Thread Ben Nadel
--Original Message- From: Ryan Guill [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 07, 2005 9:39 AM To: CF-Talk Subject: Re: cfscript Common Functions and Best Practices You do not have to put the files outside of the current application or have any mappings if you dont want. You certai

Re: cfscript Common Functions and Best Practices

2005-12-07 Thread Ryan Guill
134 > 212.691.3477 fax > www.nylontechnology.com > > "Vote for Pedro" > > -Original Message----- > From: Ryan Guill [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 07, 2005 9:06 AM > To: CF-Talk > Subject: Re: cfscript Common Functions and Best Pra

RE: cfscript Common Functions and Best Practices

2005-12-07 Thread Ben Nadel
Sent: Wednesday, December 07, 2005 9:06 AM To: CF-Talk Subject: Re: cfscript Common Functions and Best Practices Just so you know, you can also use COAL to do something similar. You just create an object out of COAL, and then you can access your different libraries at the time you need them. An

Re: cfscript Common Functions and Best Practices

2005-12-07 Thread Ryan Guill
NY 10011 > 212.691.1134 > 212.691.3477 fax > www.nylontechnology.com > > "Vote for Pedro" > -Original Message- > From: Ryan Duckworth [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 06, 2005 5:54 PM > To: CF-Talk > Subject: cfscript Common Func

RE: cfscript Common Functions and Best Practices

2005-12-07 Thread Ben Nadel
Ben Nadel Web Developer Nylon Technology 6 West 14th Street New York, NY 10011 212.691.1134 212.691.3477 fax www.nylontechnology.com "Vote for Pedro" -Original Message- From: Ryan Duckworth [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 06, 2005 5:54 PM To: CF-Talk Subject: cfscrip

RE: cfscript Common Functions and Best Practices

2005-12-06 Thread Bobby Hartsfield
Bobby Hartsfield http://acoderslife.com -Original Message- From: Ryan Duckworth [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 06, 2005 5:54 PM To: CF-Talk Subject: cfscript Common Functions and Best Practices Currently we have many functions that we use within cfscript. We are storing them i

Re: cfscript Common Functions and Best Practices

2005-12-06 Thread Michael Dinowitz
s that we use within cfscript. We are > storing them in the request scope (see 2 examples below). > > > Here is what I am don't like about this approach: Every page hit from > every user is loading these common functions. I personally am not > convinced that the request scope

cfscript Common Functions and Best Practices

2005-12-06 Thread Ryan Duckworth
Currently we have many functions that we use within cfscript. We are storing them in the request scope (see 2 examples below). Here is what I am don't like about this approach: Every page hit from every user is loading these common functions. I personally am not convinced that the re

Re: Complete CFSCRIPT

2005-12-05 Thread John Wilker
cember 05, 2005 10:46 AM > To: CF-Talk > Subject: Complete CFSCRIPT > > A long while ago I wrote some step by step docs for CFSCRIPT: > http://www.houseoffusion.com/docs/cfscript.htm > I've decided to update them to include everything you could ever want to > know about t

RE: Complete CFSCRIPT

2005-12-05 Thread Gaulin, Mark
How about writing functions (var, return, arguments, etc)? -Original Message- From: Michael Dinowitz [mailto:[EMAIL PROTECTED] Sent: Monday, December 05, 2005 10:46 AM To: CF-Talk Subject: Complete CFSCRIPT A long while ago I wrote some step by step docs for CFSCRIPT: http

Complete CFSCRIPT

2005-12-05 Thread Michael Dinowitz
A long while ago I wrote some step by step docs for CFSCRIPT: http://www.houseoffusion.com/docs/cfscript.htm I've decided to update them to include everything you could ever want to know about the tag, related syntax and functions. I've started it here: http://www.houseoffusion.com/doc

RE: Need help invoking CFC using CFSCRIPT

2005-12-02 Thread Dave Watts
> I'm building some user-configurable front page widgets for a site > that I'm building. I'd prefer to use CFSCRIPT for a number of reasons. > Anyway, I'm having trouble getting any output. This code, using > CFINVOKE, works fine (it returns the HTML for an image

Need help invoking CFC using CFSCRIPT

2005-12-02 Thread Pete Ruckelshaus
Hi, I'm building some user-configurable front page widgets for a site that I'm building. I'd prefer to use CFSCRIPT for a number of reasons. Anyway, I'm having trouble getting any output. This code, using CFINVOKE, works fine (it returns the HTML for an image tag): #

Re: CFscript function

2005-10-26 Thread Alan Rother
sInMonth(CreateDate(TheYear,TheMonth,1)) OR > TheDayInMonth lt 1) > {myReturnVar = 1;} > else > {myReturnVar = TheDayInMonth;} > > > > > Enjoy > =] > > On 10/26/05, Ken <[EMAIL PROTECTED]> wrote: > > > > Hi. I am new to CFC. Can someone help me c

Re: CFscript function

2005-10-26 Thread Alan Rother
)) OR TheDayInMonth lt 1) {myReturnVar = 1;} else {myReturnVar = TheDayInMonth;} Enjoy =] On 10/26/05, Ken <[EMAIL PROTECTED]> wrote: > > Hi. I am new to CFC. Can someone help me convert this function from > cfscript > to CFML? > > > /** > * Returns the day of the month(

CFscript function

2005-10-26 Thread Ken
Hi. I am new to CFC. Can someone help me convert this function from cfscript to CFML? /** * Returns the day of the month(1-31) of an Nth Occurrence of a day (1-sunday,2-monday etc.)in a given month. * * @param NthOccurrence A number representing the nth occurrence.1-5. * @param TheDayOfWeek A

Re: cfscript: optional arguments in function calling

2005-10-03 Thread Joe Eugene
IL PROTECTED]> wrote: > > Don't forget you can use argumentCollection to dynamically pass > > attributes to a CFC method or UDF. That would let you use cfscript if > > you want to. argumentCollection for CFCs/UDFs works the same as > > attributeCollection for c

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