calling custom tags with cfscript in mx?

2002-08-13 Thread Justin Hansen
Can you call a custom tag from cfscript in MX if you use cfimport? I need an example Justin Hansen -- Uhlig Communications Systems Engineer -- [EMAIL PROTECTED] 913-754-4273

RE: calling custom tags with cfscript in mx?

2002-08-13 Thread Raymond Camden
CFIMPORT adds tag support w/ a name space which doesn't work in cfscript. Ie, you can't do: tagprefix:tagname() However, you can call custom tags in cfscript if you use a work around. You can easily design a CFFUNCTIOn based wrapper for your custom tag, or write a generic Module UDF (I'm

CFSCRIPT

2002-07-31 Thread Tangorre, Michael
does anyone know of any resources online that define what a developer can do within a cfscript tag?.. a white paper perhaps...? Thanks! Michael Tangorre __ Signup for the Fusion Authority news alert and keep up with the latest

Re: CFSCRIPT

2002-07-31 Thread Critter
of any resources online that define what a developer can do within a cfscript tag?.. a white paper perhaps...? TM Thanks! TM Michael Tangorre TM __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http

Re: CFSCRIPT

2002-07-31 Thread Jeffry Houser
http://www.houseoffusion.com/script.ppt http://livedocs.macromedia.com/cfmxdocs/Developing_ColdFusion_MX_Applications_with_CFML/CFScript.jsp I could have sworn Michael was working on an HTML CFScript document, but I don't see it linked off of the HOF home page. At 10:40 AM 7/31/2002 -0400

RE: CFSCRIPT

2002-07-31 Thread Tangorre, Michael
thanks! -Original Message- From: Jeffry Houser [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 10:46 AM To: CF-Talk Subject: Re: CFSCRIPT http://www.houseoffusion.com/script.ppt http://livedocs.macromedia.com/cfmxdocs/Developing_ColdFusion_MX_Applications_with_CFML

RE: CFSCRIPT

2002-07-31 Thread Tangorre, Michael
thanks! -Original Message- From: Critter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 10:40 AM To: CF-Talk Subject: Re: CFSCRIPT oi Michael!! here's some info: http://www.houseoffusion.com/script.ppt -- Critz Macromedia Certified Advanced ColdFusion Developer

Re: CFSCRIPT

2002-07-31 Thread Michael Dinowitz
www.houseoffusion.com/docs/cfscript.htm does anyone know of any resources online that define what a developer can do within a cfscript tag?.. a white paper perhaps...? Thanks! Michael Tangorre __ Get the mailserver

looping over lists and queries in cfscript

2002-07-26 Thread jt
has anyone found a good way to loop over lists and queries in cfscript? any ideas would be well appreciated! --Josh __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk

Re: looping over lists and queries in cfscript

2002-07-26 Thread Michael Dinowitz
www.houseoffusion.com/docs/cfscript.htm 8.7 loops over a query and 8.8 loops over a list. has anyone found a good way to loop over lists and queries in cfscript? any ideas would be well appreciated! --Josh

RE: looping over lists and queries in cfscript

2002-07-26 Thread jt
That's exactly what I needed! Thanks! -Original Message- From: Michael Dinowitz [mailto:[EMAIL PROTECTED]] Sent: Friday, July 26, 2002 11:19 AM To: CF-Talk Subject: Re: looping over lists and queries in cfscript www.houseoffusion.com/docs/cfscript.htm 8.7 loops over a query and 8.8

RE: looping over lists and queries in cfscript

2002-07-26 Thread jt
To: CF-Talk Subject: Re: looping over lists and queries in cfscript www.houseoffusion.com/docs/cfscript.htm 8.7 loops over a query and 8.8 loops over a list. has anyone found a good way to loop over lists and queries in cfscript? any ideas would be well appreciated! --Josh

cfscript for in vs cfloop collection...

2002-07-15 Thread Jon Hall
Perhaps someone else can see what I am doing wrong here (cf5). I've had this problem in the past, and just included the code inline with a cfloop around my cfscript, but now I want to convert the code to a UDF... Here is the code. This works fine: cfloop collection=#transDOM.selectNodes

RE: cfscript for in vs cfloop collection...

2002-07-15 Thread Mark A. Kruger - CFG
PROTECTED]] Sent: Monday, July 15, 2002 2:56 PM To: CF-Talk Subject: cfscript for in vs cfloop collection... Perhaps someone else can see what I am doing wrong here (cf5). I've had this problem in the past, and just included the code inline with a cfloop around my cfscript, but now I want

RE: cfscript for in vs cfloop collection...

2002-07-15 Thread Raymond Camden
Incorrect. for(x in foo) normally works just fine. cfscript x = structNew(); x.alpha = ray; x.gamma = camden; for(i in x) { writeOutput(key=#i#, val is #x[i]#br); } /cfscript === Raymond Camden, ColdFusion Jedi Master

Re: cfscript for in vs cfloop collection...

2002-07-15 Thread Jon Hall
PROTECTED] Sent: Monday, July 15, 2002 4:00 PM Subject: RE: cfscript for in vs cfloop collection... Yep... the for loop expects a counter (for (i = 1; i le Len(somevar); i = i + 1) ) There is no in key word for it. sorry. You will have to determine the number of childnodes in /trackresponse

RE: cfscript for in vs cfloop collection...

2002-07-15 Thread Mark A. Kruger - CFG
No kidding? Where is that documented? -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 2:08 PM To: CF-Talk Subject: RE: cfscript for in vs cfloop collection... Incorrect. for(x in foo) normally works just fine. cfscript x = structNew

RE: cfscript for in vs cfloop collection...

2002-07-15 Thread Mark A. Kruger - CFG
: Monday, July 15, 2002 2:08 PM To: CF-Talk Subject: RE: cfscript for in vs cfloop collection... Incorrect. for(x in foo) normally works just fine. cfscript x = structNew(); x.alpha = ray; x.gamma = camden; for(i in x) { writeOutput(key=#i#, val is #x[i]#br); } /cfscript

RE: cfscript for in vs cfloop collection...

2002-07-15 Thread Christopher Olive
Message- From: Jon Hall [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 3:56 PM To: CF-Talk Subject: cfscript for in vs cfloop collection... Perhaps someone else can see what I am doing wrong here (cf5). I've had this problem in the past, and just included the code inline with a cfloop

RE: cfscript for in vs cfloop collection...

2002-07-15 Thread todd
: RE: cfscript for in vs cfloop collection... Incorrect. for(x in foo) normally works just fine. cfscript x = structNew(); x.alpha = ray; x.gamma = camden; for(i in x) { writeOutput(key=#i#, val is #x[i]#br); } /cfscript

Re: cfscript for in vs cfloop collection...

2002-07-15 Thread S . Isaac Dealey
in assuming that cfloop-collection and cfscript for-in loops are the same? You might try setting the pointer to the object above the loop... myxmlobject = objMXLCOM.selectNodes('/TrackResponse/Activity'); for (i in myxmlobject) { ... whatever... } it may just be that CF doesn't like

RE: cfscript for in vs cfloop collection...

2002-07-15 Thread S . Isaac Dealey
No kidding? Where is that documented? Yea, I don't remember the for-in syntax being documented in the Developing Web Applications with ColdFusion pdf either... but it does work... it's standard C/C++/Java/JavaScript syntax which is what they were trying to emulate with cfscript -- which

Re: cfscript for in vs cfloop collection...

2002-07-15 Thread Jon Hall
- Original Message - From: S. Isaac Dealey [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, July 15, 2002 4:30 PM Subject: Re: cfscript for in vs cfloop collection... This works fine: cfloop collection=#transDOM.selectNodes(/TrackResponse/Activity)# item=i This throws

RE: cfscript for in vs cfloop collection...

2002-07-15 Thread Raymond Camden
is the Force, and a powerful ally it is. - Yoda -Original Message- From: Jon Hall [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 4:48 PM To: CF-Talk Subject: Re: cfscript for in vs cfloop collection... Tried it...wont work. It says it's not a valid CF structure, which it isn't

Re: cfscript for in vs cfloop collection...

2002-07-15 Thread todd
What is transDOM then? I'm gathering that's an XML object? Have you looked into the proper xml functions? What does Allaire have to do with your code below btw? ~Todd On Mon, 15 Jul 2002, Jon Hall wrote: Tried it...wont work. It says it's not a valid CF structure, which it isn't...but

RE: cfscript for in vs cfloop collection...

2002-07-15 Thread Joe Bastian
Subject: RE: cfscript for in vs cfloop collection... Yep... the for loop expects a counter (for (i = 1; i le Len(somevar); i = i + 1) ) There is no in key word for it. sorry. You will have to determine the number of childnodes in /trackresponse/activity and use that as your counter. mark

Re: cfscript for in vs cfloop collection...

2002-07-15 Thread Jon Hall
No...it's a COM object. Which I am sure is the problem. - Original Message - From: Raymond Camden [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, July 15, 2002 3:53 PM Subject: RE: cfscript for in vs cfloop collection... Is transDOM.selectNodes(/TrackResponse/Activity

Re: cfscript for in vs cfloop collection...

2002-07-15 Thread Jon Hall
on Neo, which would be entirely acceptable to me. I just was wondering if I for-in worked like cfloop :) jon - Original Message - From: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, July 15, 2002 4:51 PM Subject: Re: cfscript for in vs cfloop collection... What is transDOM

cfscript WAS:RE: OT: Naming Convention choice

2002-07-05 Thread Shawn McKee
IMHO it is a lot cleaner and easier to read. Shawn McKee -Original Message- From: Weaver, Anthony [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 2:00 PM To: CF-Talk Subject: RE: OT: Naming Convention choice I have been writing CF code since 3.x and have NEVER used CFScript

cfscript

2002-07-05 Thread Ben Johnson
I have been writing CF code since 3.x and have NEVER used CFScript. I have never actually found a need. cfscript does have some speed benefits when it comes to recursively calling something, such as building a tree. You can do the same with a custom tag, but it's slower. Although

Re: cfscript

2002-07-05 Thread Charlie
I have been using cfscript when i need to set multiple variables on a page, i thought there was a benefit to using cfscript versus a large amoung of cfsetsis this not true __ Signup for the Fusion Authority news alert

RE: cfscript

2002-07-05 Thread Dave Watts
I have been using cfscript when i need to set multiple variables on a page, i thought there was a benefit to using cfscript versus a large amoung of cfsetsis this not true It doesn't hurt anything, and may make a marginal, not to say infinitesimal, difference in performance. Dave

Re: cfscript

2002-07-05 Thread Michael Dinowitz
It was true in earlier versions of CF (5 on down) and may still be true in CFMX. The savings is a small one, but every bit helps. I covered it way back in: http://www.fusionauthority.com/alert/index.cfm?alertid=4#Laws1 I have been using cfscript when i need to set multiple variables

Re: cfscript

2002-07-05 Thread S . Isaac Dealey
I have been writing CF code since 3.x and have NEVER used CFScript. I have never actually found a need. cfscript does have some speed benefits when it comes to recursively calling something, such as building a tree. You can do the same with a custom tag, but it's slower. Although

CFSCRIPT help

2002-06-27 Thread Thane Sherrington
Can someone suggest a good book or site on CFSCRIPT? I'm trying to write a script that will test a variable and if the variable is good, do some calculations on it and return the finished value, but if it's bad, it'll break out with an error message. Other than nesting a lot of ifs, I can't

Re: CFSCRIPT help

2002-06-27 Thread Michael Dinowitz
www.houseoffusion.com/docs/cfscript.htm At 12:11 PM 6/27/02, you wrote: Can someone suggest a good book or site on CFSCRIPT? I'm trying to write a script that will test a variable and if the variable is good, do some calculations on it and return the finished value, but if it's bad, it'll

Re: CFSCRIPT help

2002-06-27 Thread Jeffry Houser
or site on CFSCRIPT? I'm trying to write a script that will test a variable and if the variable is good, do some calculations on it and return the finished value, but if it's bad, it'll break out with an error message. Other than nesting a lot of ifs, I can't figure out how to do it. T

Re: CFSCRIPT help

2002-06-27 Thread Thane Sherrington
of the cfscript block without converting to ODBC date. I used to do this in straight CF code and used a javascript pop up to display the error. T __ Structure your ColdFusion code with Fusebox. Get the official book at http

Re: CFSCRIPT help

2002-06-27 Thread Jeffry Houser
At 01:57 PM 6/27/2002 -0300, you wrote: At 12:45 PM 6/27/02 -0400, Jeffry Houser wrote: I'm not sure what makes a variable good in this case, but if you offer more information, perhaps I can offer more information. I'm checking the value of a date to make sure it's legal. (I've had no end

Re: CFSCRIPT help

2002-06-27 Thread Thane Sherrington
.) So I wrote a basic CF program to handle this, but if I can do it as a UDF it would be much slicker (and give me some practice creating UDFs.) Perhaps it is impossible to break out of CFSCRIPT block. How many variables can I return with a CFSCRIPT block? T

Re: CFSCRIPT help

2002-06-27 Thread S . Isaac Dealey
: Grab the digits up to the first / and put in day, month or year, depending on mask. Repeat for up to send /, and finally for last piece of data. Now if there aren't enough slashes or if the day or month isn't legal, I'd like to display and error and drop out of the cfscript block without

Re: CFSCRIPT help

2002-06-27 Thread S . Isaac Dealey
How many variables can I return with a CFSCRIPT block? You mean with a UDF ? ... As many as you want ... as long as they're all part of the same complex object like a query, structure or array ... function foo() { var myreturn = new Structure(); myreturn.hello = hello

Re: CFSCRIPT help

2002-06-27 Thread Jeffry Houser
I want to make sure I clarify that CFScript blocks and UDF functions are two completely different things. In a UDF, you can only return a single value. That value can be a complex value (Array or Structure), though. CFScript blocks don't explicitly return any values, although you can

Re: CFSCRIPT help

2002-06-27 Thread Thane Sherrington
At 01:46 PM 6/27/02 -0400, S. Isaac Dealey wrote: function validDate(mydate) { if (not ReFind(mydate,[0-9][0-9]?/[0-9][0-9]?/[0-9][0-9][0-9][0-9])) { return Inavlid Date Mask; } var day = listfirst(mydate,/); var month = listgetat(mydate,2,/); var year =

Re: CFSCRIPT help

2002-06-27 Thread Thane Sherrington
At 01:50 PM 6/27/02 -0400, Jeffry Houser wrote: Are you saying that you are being given April 5th (I.e. 4/5/2002) and the system is seeing it as May 4th (5/4/2002)? What are the problems with EuroDate validation? This is exactly the problem. Eurodate sometimes takes the date correctly and

Re: CFSCRIPT help

2002-06-27 Thread Thane Sherrington
At 01:49 PM 6/27/02 -0400, S. Isaac Dealey wrote: How many variables can I return with a CFSCRIPT block? You mean with a UDF ? ... As many as you want ... as long as they're all part of the same complex object like a query, structure or array ... Sorry, I meant a UDF. Thanks

Re: CFSCRIPT help

2002-06-27 Thread S . Isaac Dealey
At 01:57 PM 6/27/2002 -0300, you wrote: At 12:45 PM 6/27/02 -0400, Jeffry Houser wrote: I'm not sure what makes a variable good in this case, but if you offer more information, perhaps I can offer more information. I'm checking the value of a date to make sure it's legal. (I've had no

Re: CFSCRIPT help

2002-06-27 Thread S . Isaac Dealey
At 01:46 PM 6/27/02 -0400, S. Isaac Dealey wrote: function validDate(mydate) { if (not ReFind(mydate,[0-9][0-9]?/[0-9][0-9]?/[0-9][0-9][0-9][0-9])) { return Inavlid Date Mask; } var day = listfirst(mydate,/); var month = listgetat(mydate,2,/); var year =

Re: CFSCRIPT help

2002-06-27 Thread Jeffry Houser
At 02:16 PM 6/27/2002 -0400, you wrote: At 01:57 PM 6/27/2002 -0300, you wrote: At 12:45 PM 6/27/02 -0400, Jeffry Houser wrote: I'm not sure what makes a variable good in this case, but if you offer more information, perhaps I can offer more information. I'm checking the value of

RE: CFSCRIPT help

2002-06-27 Thread Bill Henderson
to know. I am really just killing time trying not to get back to real work. Please help me achieve my goal. cfscript function checkDate(date) { if (not ReFind(^([0-9]{1,2})([[:punct:]]|[[:space:]]){1,}[0-9]{1,2}?(([[:punct: ]]|[[:space:]]){1,}([0-9]{2}|[0-9]{4}))$,date

RE: CFSCRIPT help

2002-06-27 Thread S . Isaac Dealey
Not sure aobut the months other than using (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Nov) ... though it looks like your regex has a few extra characters... ReFind(^([0-9]{1,2})([[:punct:]]|[[:space:]]){1,}[0-9]{1,2}?(([[:punct: ]]|[[:space:]]){1,}([0-9]{2}|[0-9]{4}))$,date)) Looking at it... this

RE: CFSCRIPT help

2002-06-27 Thread Bill Henderson
Thank You, I have been successful in avoiding real work! I added a check for month abbreviations, full month names, as well as a check for th,nd,rd,st. I think I am finished. cfscript function checkDate(date) { date = ReReplace(date,([[:punct:]]|[[:space:]])+,/,ALL); date

Re: CFSCRIPT help

2002-06-27 Thread mark brinkworth
I'm not sure what makes a variable good in this case, but if you offer more information, perhaps I can offer more information. I'm checking the value of a date to make sure it's legal. (I've had no end of problems with the date parsing side of CFINPUT so I'm figured I'd do it

looping over an msxml object in cfscript

2002-05-30 Thread Esher, Marc
Hi all, I posted a similar question on the CF forums today and was pointed in the right direction; now I need some additional help. I'm trying to loop over a DOM tree created with msxml. This is a snap using cfloop. However, I want to convert my cfloop code to cfscript code so that I can write

Re: looping over an msxml object in cfscript

2002-05-30 Thread Michael Dinowitz
In CF 5 and earlier there's a limitation in the CFSCRIPT loop where it can only loop over CF structures, not object structures. This may have been changed in CF MX (I'll check it out). At 01:09 PM 5/30/02, you wrote: Hi all, I posted a similar question on the CF forums today and was pointed

RE: How do you call a cfscript udf function and pass a query to it?

2002-04-15 Thread Raymond Camden
is the Force, and a powerful ally it is. - Yoda -Original Message- From: lmarcus [mailto:[EMAIL PROTECTED]] Sent: Monday, April 15, 2002 12:50 AM To: CF-Talk Subject: Re: How do you call a cfscript udf function and pass a query to it? Thanks guys, my worst fears are confirmed! I guess

cfset vs using cfscript

2002-04-15 Thread Clint Tredway
I have a question... Lets say that I have about 10 variables being set locally on 20 or so cfm pages.. How much faster is using cfscript over using cfset to set the values of these local variables? Clint Tredway __ This list

Re: cfset vs using cfscript

2002-04-15 Thread Critz
oi Clint!! well you could always do some tests, but i've heard rule o thumb is more than 3 cfscript is more efficient.. -- Critz Certified Adv. ColdFusion Developer Crit[s2k] - CF_ChannelOP Network=Efnet Channel=ColdFusion Monday, April 15, 2002

Re: cfset vs using cfscript

2002-04-15 Thread Justin Scott
General rule of thumb is to set variables using cfscript if there are three or more in a row. I do not have exact statistics to back this up, but I have found cfscript code to execute significantly faster than regular CFML. It is also easier to read and follow, IMHO. -Justin Scott, Lead

Re: cfset vs using cfscript

2002-04-15 Thread Michael Dinowitz
a fraction of a second. How big a fraction is debatable. At 11:41 AM 4/15/02, you wrote: I have a question... Lets say that I have about 10 variables being set locally on 20 or so cfm pages.. How much faster is using cfscript over using cfset to set the values of these local variables? Clint

cfoutput - was RE: cfset vs using cfscript

2002-04-15 Thread Shawn McKee
While on this topic, how about efficiency with cfoutput? It makes sense to me that this: select name=fred cfloop query=fredQ option value=cfoutput#val#/cfouputcfoutput#valDesc#/cfouput /cfloop /select is faster than this: cfoutput select name=fred

Re: cfoutput - was RE: cfset vs using cfscript

2002-04-15 Thread Jochem van Dieten
Shawn McKee wrote: While on this topic, how about efficiency with cfoutput? It makes sense to me that this: select name=fred cfloop query=fredQ option value=cfoutput#val#/cfouputcfoutput#valDesc#/cfouput /cfloop /select is faster than this: cfoutput

Re: cfset vs using cfscript

2002-04-15 Thread cf refactoring
I just optimized some templates which were written in cf tag syntax by rewriting as cfscript. In my experience, cfscript can be up to 2-3x as fast. But in my opinion, the performance isn't worth rewriting unless you're inside a loop. In my case, I rewrote all the cfset statements inside a cfquery

Re: cfset vs using cfscript

2002-04-15 Thread Alex
I have read that cfscript is faster when you have a large block. I assume you do not have access to CF right now otherwise you would have tested this yourself. Anyway, when I tested it I got the same execution time back. On Mon, 15 Apr 2002, Clint Tredway wrote: I have a question... Lets

RE: cfset vs using cfscript

2002-04-15 Thread Craig Thomas
it will be faster...how much? well, that would depend on your system. You could always set up some tests... -Original Message- From: Clint Tredway [mailto:[EMAIL PROTECTED]] Sent: Monday, April 15, 2002 11:42 AM To: CF-Talk Subject: cfset vs using cfscript I have a question... Lets

Re: cfset vs using cfscript

2002-04-15 Thread Justin Scott
[EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, April 15, 2002 11:51 AM Subject: Re: cfset vs using cfscript a fraction of a second. How big a fraction is debatable. At 11:41 AM 4/15/02, you wrote: I have a question... Lets say that I have about 10 variables being set locally on 20

Re: cfoutput - was RE: cfset vs using cfscript

2002-04-15 Thread Jeffry Houser
At 10:55 AM 4/15/2002 -0500, you wrote: While on this topic, how about efficiency with cfoutput? It makes sense to me that this: select name=fred cfloop query=fredQ option value=cfoutput#val#/cfouputcfoutput#valDesc#/cfouput /cfloop /select is faster than

RE: cfoutput - was RE: cfset vs using cfscript

2002-04-15 Thread Venn, Matthew
: Monday, April 15, 2002 11:01 AM To: CF-Talk Subject: Re: cfoutput - was RE: cfset vs using cfscript Shawn McKee wrote: While on this topic, how about efficiency with cfoutput? It makes sense to me that this: select name=fred cfloop query=fredQ option value=cfoutput#val

RE: cfoutput - was RE: cfset vs using cfscript

2002-04-15 Thread Shawn McKee
: Venn, Matthew [mailto:[EMAIL PROTECTED]] Sent: Monday, April 15, 2002 11:20 AM To: CF-Talk Subject: RE: cfoutput - was RE: cfset vs using cfscript RecordSet contained 1000 results... Using Cfoutput to loop through query: 50 ms Using Cfloop contained with cfoutput tags: 50 ms Using Cfloop

RE: cfoutput - was RE: cfset vs using cfscript

2002-04-15 Thread Jeffry Houser
At 11:46 AM 4/15/2002 -0500, you wrote: My testing agrees with this. This flies in the face of what Chris Cortes says in his book Optimizing ColdFusion 5. Page 404. Or am I reading it wrong? Does anyone else have any beefs with this book? That was the only thing I read in the book that

Re: cfoutput - was RE: cfset vs using cfscript

2002-04-15 Thread Justin Scott
My testing agrees with this. This flies in the face of what Chris Cortes says in his book Optimizing ColdFusion 5. Page 404. Or am I reading it wrong? Does anyone else have any beefs with this book? The book is referring to it being more efficient to wrap cfoutput tags around individual

RE: cfset vs using cfscript

2002-04-15 Thread Dave Watts
A fraction of a second on a major application that gets millions of hits a day can make or break a system. Remember that when you do the big jobs g. While it's a good idea to code for efficiency wherever possible, the above statement just isn't that accurate. Almost every system I've seen

Re: cfoutput - was RE: cfset vs using cfscript

2002-04-15 Thread Dave Carabetta
My testing agrees with this. This flies in the face of what Chris Cortes says in his book Optimizing ColdFusion 5. Page 404. Or am I reading it wrong? Does anyone else have any beefs with this book? The book is referring to it being more efficient to wrap cfoutput tags around

Re: cfoutput - was RE: cfset vs using cfscript

2002-04-15 Thread Justin Scott
I have to take issue with your last paragraph. I don't know what's going on in the examples in the book because I don't own it. However, as has been discussed here way too many times (check the archives), CFLOOP QUERY= has been tuned starting with CF 4.01 to be faster than CFOUTPUT QUERY=.

RE: cfoutput - was RE: cfset vs using cfscript

2002-04-15 Thread Dave Watts
of those items, then the difference in performance that you'll get by tweaking CFOUTPUT vs CFLOOP, or CFSET vs CFSCRIPT, or any of these other types of things will be truly insignificant. It's important to remember that there are no perfect applications, and any time you spend on one thing is time

RE: cfset vs using cfscript

2002-04-15 Thread Alex
personally, I never use comments and all my code is one long line for execution speed. On Mon, 15 Apr 2002, Dave Watts wrote: A fraction of a second on a major application that gets millions of hits a day can make or break a system. Remember that when you do the big jobs g. While

Re: cfoutput - was RE: cfset vs using cfscript

2002-04-15 Thread Justin Scott
with back-end API's and procedures as opposed to heavy user traffic, so coding using the most efficient means possible is an absolute must. Some of the loops I deal with iterate tens of thousands of times and are run over a thousand times a day. Using cfscript as opposed to CFML for setting variables

RE: cfset vs using cfscript

2002-04-15 Thread Jeffry Houser
And you are bragging about that? At 05:05 PM 4/15/2002 -0400, you wrote: personally, I never use comments and all my code is one long line for execution speed. On Mon, 15 Apr 2002, Dave Watts wrote: A fraction of a second on a major application that gets millions of hits a day can make

Re: cfoutput - was RE: cfset vs using cfscript

2002-04-15 Thread Jeffry Houser
At 05:29 PM 4/15/2002 -0400, you wrote: tweaks of this nature don't make a significant difference, and you can't rely on their behavior in future versions (or previous versions for that matter). Eh? I wasn't aware there was a chance Macromedia was going to rip cfscript out of ColdFusion

Re: cfoutput - was RE: cfset vs using cfscript

2002-04-15 Thread Justin Scott
I believe he meant that the minor performance tweaks being discussed here may not hold true in new (or previous) versions. Ah, ok. Then it makes perfect sense. It's late. It's Monday. I'm closing the thread in my mind and going home. -Justin Scott, Lead Developer Sceiron Internet

RE: cfoutput - was RE: cfset vs using cfscript

2002-04-15 Thread Dave Watts
cfscript as opposed to CFML for setting variables (even a few) can make several seconds of processing go away. Granted, on normal applications that do not experience much traffic (and even some that do) the differences of this type are probably not paramount. For NEW code, there is no reason

Re: RE: cfoutput - was RE: cfset vs using cfscript

2002-04-15 Thread ksuh
OK, tell us everything you know about CF 7 and CF 2010 ;) So, we've got two different ways of doing something; one of these ways used to be faster than the other, but now their positions have been reversed,according to this. Who's to say which will be faster under CF MX, or CF 7, or CF

RE: cfoutput - was RE: cfset vs using cfscript - Answer: NEO

2002-04-15 Thread Justin Hansen
Ah, but the real question that will end the debate. Will it make a difference in NEO? I don't think it will if after your code is compiled. This leaves us with, will it compile faster? Most likely, but everything is compiled on the first hit, who cares, right? To me, this boils it down

Re: RE: cfoutput - was RE: cfset vs using cfscript

2002-04-15 Thread Jeffry Houser
CF7 is great, finally incorporating the full range of object oriented methodologies within ColdFusion. CF 2010 is not my cup of tea, though. They decided to bypass the Internet all together since it is now owned and controlled entirely by Microsoft, which means, thankfully we still have

RE: cfoutput - was RE: cfset vs using cfscript - Answer: NEO

2002-04-15 Thread Jeffry Houser
At 05:15 PM 4/15/2002 -0500, you wrote: Ah, but the real question that will end the debate. Will it make a difference in NEO? I don't think it will if after your code is compiled. Someone mentioned that to me in the past. I believe we were talking about custom tags vs includes. It

RE: RE: cfoutput - was RE: cfset vs using cfscript

2002-04-15 Thread Kwang Suh
]] Sent: Monday, April 15, 2002 4:31 PM To: CF-Talk Subject: Re: RE: cfoutput - was RE: cfset vs using cfscript CF7 is great, finally incorporating the full range of object oriented methodologies within ColdFusion. CF 2010 is not my cup of tea, though. They decided to bypass the Internet all

How do you call a cfscript udf function and pass a query to it?

2002-04-14 Thread lmarcus
The error is that it doesnt know that CallQuery Exists. This is done in CF 4.5. Thanks L Marcus cfquery name=LarryRec datasource=db2 maxrows=100 dbtype=ODBC debug SELECT lastname, address FROM larry4 /cfquery cfset temp= CallQuery(LarryRec, cyan, magenta) cfscript function CallQuery

Re: How do you call a cfscript udf function and pass a query to it?

2002-04-14 Thread Douglas Brown
CF 4.5 does not support UDF Success is a journey, not a destination!! Doug Brown - Original Message - From: lmarcus [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, April 14, 2002 9:35 PM Subject: How do you call a cfscript udf function and pass a query

Re: How do you call a cfscript udf function and pass a query to it?

2002-04-14 Thread Jon Hall
UDF's are not a feature of CF 4.5. 5+ only. lmarcus wrote: The error is that it doesnt know that CallQuery Exists. This is done in CF 4.5. Thanks L Marcus cfquery name=LarryRec datasource=db2 maxrows=100 dbtype=ODBC debug SELECT lastname, address FROM larry4 /cfquery cfset temp=

Re: How do you call a cfscript udf function and pass a query to it?

2002-04-14 Thread lmarcus
Thanks guys, my worst fears are confirmed! I guess I will have to get an update. L Marcus - Original Message - From: Jon Hall [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, April 15, 2002 12:39 AM Subject: Re: How do you call a cfscript udf function and pass a query

Re: How do you call a cfscript udf function and pass a query to it?

2002-04-14 Thread Douglas Brown
What is it that you are trying to accomplish? Success is a journey, not a destination!! Doug Brown - Original Message - From: lmarcus [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, April 14, 2002 9:49 PM Subject: Re: How do you call a cfscript udf function and pass

Re: Looping over a query with CFSCRIPT

2002-03-26 Thread Sharon DiOrio
More like: cfscript for (i=1; i LTE selProd.recordcount; i=i+1) { writeOutput(selProd.PR_NAME[i] br); } /cfscript Sharon - Original Message - From: VAN VLIET, SCOTT E (SBCSI) [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, March 25, 2002 6:47 PM Subject

Looping over a query with CFSCRIPT

2002-03-25 Thread VAN VLIET, SCOTT E (SBCSI)
Is this possible? If so, sample code would be appreciated. I tried the following, and got an access error (i understand that you can't modify currentrow, etc, but one can wish, right ^_^): cfscript while (selProd.CurrentRow LTE selProd.RecordCount) { writeOutput(selProd.PR_NAME

Re: Looping over a query with CFSCRIPT

2002-03-25 Thread Michael Dinowitz
http://www.houseoffusion.com/docs/cfscript.htm note 8.7 At 06:47 PM 3/25/02, you wrote: Is this possible? If so, sample code would be appreciated. I tried the following, and got an access error (i understand that you can't modify currentrow, etc, but one can wish, right ^_^): cfscript while

RE: Looping over a query with CFSCRIPT

2002-03-25 Thread VAN VLIET, SCOTT E (SBCSI)
a query with CFSCRIPT http://www.houseoffusion.com/docs/cfscript.htm note 8.7 At 06:47 PM 3/25/02, you wrote: Is this possible? If so, sample code would be appreciated. I tried the following, and got an access error (i understand that you can't modify currentrow, etc, but one can wish, right

CFSCRIPT Preservesinglequotes()

2002-03-21 Thread Sean Daniels
I have written a seemingly simple UDF for cleaning up data before an insert or update statement (it trims the string, inserts null when necessary, wraps string in single quotes if it's a char field): cfscript function checknull(ii,isint) { if (isint) { return iif(len

Re: CFSCRIPT Preservesinglequotes()

2002-03-21 Thread James Sleeman
wierd thing, it's one thing to escape values being spit out to the database, it's another to escape values when feeding them to a UDF. - Original Message - From: Sean Daniels [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, March 22, 2002 5:06 AM Subject: CFSCRIPT

RE: cfscript vs markup...

2002-02-06 Thread Bill Killillay
Hey Michael, what do you mean by dataset? In experimenting with the cfscript code it seems that the count break statement like I use in regular cf markup is getting ignored. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 11:07 AM

RE: cfscript vs markup...

2002-02-06 Thread Michael Dinowitz
mean by dataset? In experimenting with the cfscript code it seems that the count break statement like I use in regular cf markup is getting ignored. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 11:07 AM To: CF-Talk Subject: Re

cfscript vs markup...

2002-02-05 Thread Bill Killillay
Hello list, I have two pieces of code and I can't figure out why one works and the other does not. The regular markup works perfect, so I thought I would move it to CFSCRIPT, which is normally not a problem, but on barely 3 hours of sleep it's one today... anyway here they both are followed

<    6   7   8   9   10   11   12   13   14   >