Re: I hate CFScript and I'm willing to pay for a CFScript -- CFtag parser

2011-04-07 Thread Jeff Gladnick
First flame! And I'm willing to pay for a C-64 version of Halo 3. On Thu, Apr 7, 2011 at 7:20 PM, Jeff Gladnick jeff.gladn...@gmail.comwrote: ~| Order the Adobe Coldfusion Anthology now!

Re: I hate CFScript and I'm willing to pay for a CFScript -- CFtag parser

2011-04-07 Thread Michael Grant
Albeit a tame flame. :) On Thu, Apr 7, 2011 at 7:32 PM, Jeff Gladnick jeff.gladn...@gmail.comwrote: First flame! And I'm willing to pay for a C-64 version of Halo 3. On Thu, Apr 7, 2011 at 7:20 PM, Jeff Gladnick jeff.gladn...@gmail.com wrote:

Re: I hate CFScript and I'm willing to pay for a CFScript -- CFtag parser

2011-04-07 Thread Sean Corfield
On Thu, Apr 7, 2011 at 4:20 PM, Jeff Gladnick jeff.gladn...@gmail.com wrote: I actually don't hate cfscript, but I do hate that we have both tags and script based syntax for CFML.  And since it started off as tags, I firmly believe that's the way it should stay. You won't like the new

Re: I hate CFScript and I'm willing to pay for a CFScript -- CFtag parser

2011-04-07 Thread Nathan Strutz
://www.dopefly.com/] [http://hi.im/nathanstrutz] On Thu, Apr 7, 2011 at 4:20 PM, Jeff Gladnick jeff.gladn...@gmail.comwrote: I actually don't hate cfscript, but I do hate that we have both tags and script based syntax for CFML. And since it started off as tags, I firmly believe that's the way it should

Re: I hate CFScript and I'm willing to pay for a CFScript -- CFtag parser

2011-04-07 Thread Michael Dinowitz
The translation is actually rather easy. It's just a bunch of RegEx for parsing and rules for understanding. The limitations of cfscript are perfect here as there are not many rules. The only thing would be the loops that are available in cfscript but do not exist in standard cf. Also, if someone

Re: I hate CFScript and I'm willing to pay for a CFScript -- CFtag parser

2011-04-07 Thread Jeff Gladnick
On Thu, Apr 7, 2011 at 4:20 PM, Jeff Gladnick jeff.gladnick@gmail. com wrote: I actually don't hate cfscript, but I do hate that we have both tags and script based syntax for CFML.  And since it started off as tags, I firmly believe that's the way it should stay. You won't like the new

Re: I hate CFScript and I'm willing to pay for a CFScript -- CFtag parser

2011-04-07 Thread Jeff Gladnick
That's funny. Actually I created a tags -- script converter a few weeks ago, kind of for fun, kind of for upgrading to CF9. It works for basic stuff, components, functions, some loops, try/catch, etc, but gets confused with queries or anything else complicated. nathan strutz

Re: I hate CFScript and I'm willing to pay for a CFScript -- CFtag parser

2011-04-07 Thread Jeff Gladnick
The translation is actually rather easy. It's just a bunch of RegEx for parsing and rules for understanding. The limitations of cfscript are perfect here as there are not many rules. The only thing would be the loops that are available in cfscript but do not exist in standard cf. Also, if someone

Re: cfscript based components formatting

2010-11-17 Thread denstar
On Mon, Nov 15, 2010 at 7:18 PM, Sean Corfield wrote: ... (it doesn't affect my position that comments should never change the semantics of code - although, as noted by Ray, the example given only affects metadata so it would only affect the semantics of a program that tested that metadata...

Re: cfscript based components formatting

2010-11-16 Thread Raymond Camden
Sorry - what? On Mon, Nov 15, 2010 at 10:33 PM, Andrew Scott andr...@andyscott.id.au wrote: No annotations in the comments was mentioned to be slower than using the other way. Regards, Andrew Scott http://www.andyscott.id.au/

cfscript based components formatting

2010-11-15 Thread John Allen
Hey CFer’s This might be a silly question: how are you all formatting your cfcsript based cfc’s? Using annotations or defining the attributes in the method itself? EG: // methodOne *public* boolean *function* foo() displayname=I am Foo description=I return a boolean value. I

Re: cfscript based components formatting

2010-11-15 Thread Judah McAuley
I go with the first route as Sean Corfield has made what I consider to be a very excellent point, which is that comments should never have effect on the executing code. Comments are for documentation only. Judah On Mon, Nov 15, 2010 at 10:15 AM, John Allen johnfal...@gmail.com wrote: Hey

Re: cfscript based components formatting

2010-11-15 Thread Matt Quackenbush
No comments driving behavior! :-) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: cfscript based components formatting

2010-11-15 Thread Charlie Griefer
/* This is me agreeing */ I agree! On Mon, Nov 15, 2010 at 3:35 PM, Matt Quackenbush quackfu...@gmail.comwrote: No comments driving behavior! :-) ~| Order the Adobe Coldfusion Anthology now!

Re: cfscript based components formatting

2010-11-15 Thread Raymond Camden
I agree too - although in this case the comments just impact metadata. displayname/description/hint are only used in auto-display. On Mon, Nov 15, 2010 at 4:42 PM, Charlie Griefer charlie.grie...@gmail.com wrote: /* This is me agreeing */ I agree! On Mon, Nov 15, 2010 at 3:35 PM, Matt

RE: cfscript based components formatting

2010-11-15 Thread Andrew Scott
Method one, there is a performance hit when using notations. Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: John Allen [mailto:johnfal...@gmail.com] Sent: Tuesday, 16 November 2010 5:16 AM To: cf-talk Subject: cfscript based components formatting

Re: cfscript based components formatting

2010-11-15 Thread John Allen
[mailto:johnfal...@gmail.com] Sent: Tuesday, 16 November 2010 5:16 AM To: cf-talk Subject: cfscript based components formatting Hey CFer's This might be a silly question: how are you all formatting your cfcsript based cfc's? Using annotations or defining the attributes in the method

Re: cfscript based components formatting

2010-11-15 Thread Sean Corfield
On Mon, Nov 15, 2010 at 2:58 PM, Andrew Scott andr...@andyscott.id.au wrote: Method one, there is a performance hit when using notations. Is there? Why so? (it doesn't affect my position that comments should never change the semantics of code - although, as noted by Ray, the example given only

RE: cfscript based components formatting

2010-11-15 Thread Andrew Scott
, 16 November 2010 1:18 PM To: cf-talk Subject: Re: cfscript based components formatting On Mon, Nov 15, 2010 at 2:58 PM, Andrew Scott andr...@andyscott.id.au wrote: Method one, there is a performance hit when using notations. Is there? Why so? (it doesn't affect my position

Re: cfscript based components formatting

2010-11-15 Thread Raymond Camden
- From: Sean Corfield [mailto:seancorfi...@gmail.com] Sent: Tuesday, 16 November 2010 1:18 PM To: cf-talk Subject: Re: cfscript based components formatting On Mon, Nov 15, 2010 at 2:58 PM, Andrew Scott andr...@andyscott.id.au wrote: Method one, there is a performance hit when using notations

RE: cfscript based components formatting

2010-11-15 Thread Andrew Scott
No annotations in the comments was mentioned to be slower than using the other way. Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Raymond Camden [mailto:rcam...@gmail.com] Sent: Tuesday, 16 November 2010 2:56 PM To: cf-talk Subject: Re: cfscript based

cfquery, cachedwithin and cfscript

2010-10-01 Thread rex
Does anyone know how to cache a query using cfquery but in cfscript? This works, query is cached for a day: cfquery name=otherQry datasource=stuff cachedwithin=1 SELECT GETDATE() /cfquery cfdump var=#otherQry# But this doesn't, it's always cached = false: cfscript

CFScript query service problem

2010-03-09 Thread Kris Sisk
I'm trying to use the query service and I'm running into the issue that no matter what I put into the object it throws an error when I try to execute it. The specific error I'm seeing is Attribute validation error for tag CFQUERY. It does not allow the attribute 1. The code I'm feeding into it

Re: iframe cfscript getting parent form field values SOLVED

2010-02-21 Thread Dan Blickensderfer
I just wanted to give you an update on how I was able to get this to work. On my iframe page, this is all I had to do to get my javascript variable to assign it to a cf variable. Thanks for those to helped. Dan cfscript getdatefield = (' script language=JavaScript

Re: iframe cfscript getting parent form field values SOLVED

2010-02-21 Thread Dominic Watson
A word of warning; know the difference between client side and server side code. While you have solved your problem, you have not assigned the date value to a coldfusion variable at all here ('getdatefield' will never equal the date that someone has entered). Everything in the cfscript is as good

iframe cfscript getting parent form field values

2010-02-20 Thread Dan Blickensderfer
Hi everyone, I've ran into a problem and do not know if cfscript will allow this. I have a page that has an iframe and a form named eform with a half of dozen fields. I have a javascript function onblur on the last field to call another cf page (page2) through the iframe. I'm trying to get

RE: iframe cfscript getting parent form field values

2010-02-20 Thread Andrew Scott
No, Cfscript is server side scripting. You need to write javascript to do this using document.all.form[0] -Original Message- From: Dan Blickensderfer [mailto:d...@blickensderfer.com] Sent: Sunday, 21 February 2010 1:40 PM To: cf-talk Subject: iframe cfscript getting parent form field

Re: iframe cfscript getting parent form field values

2010-02-20 Thread Dan Blickensderfer
Can I set the form value to a cfset variable? - Original Message - From: Andrew Scott andr...@andyscott.id.au To: cf-talk cf-talk@houseoffusion.com Sent: Saturday, February 20, 2010 10:01 PM Subject: RE: iframe cfscript getting parent form field values No, Cfscript is server side

RE: iframe cfscript getting parent form field values

2010-02-20 Thread Andrew Scott
PM To: cf-talk Subject: Re: iframe cfscript getting parent form field values Can I set the form value to a cfset variable? - Original Message - From: Andrew Scott andr...@andyscott.id.au To: cf-talk cf-talk@houseoffusion.com Sent: Saturday, February 20, 2010 10:01 PM Subject: RE: iframe

RE: iframe cfscript getting parent form field values

2010-02-20 Thread lists
...@andyscott.id.au] Sent: Saturday, February 20, 2010 10:17 PM To: cf-talk Subject: RE: iframe cfscript getting parent form field values No, if you are doing what I think you are trying to do then your best bet is Ajax. Once the server has processed the request, the client (browser) has control

Re: iframe cfscript getting parent form field values

2010-02-20 Thread Dan Blickensderfer
- Original Message - From: lists li...@commadelimited.com To: cf-talk cf-talk@houseoffusion.com Sent: Saturday, February 20, 2010 11:49 PM Subject: RE: iframe cfscript getting parent form field values You could make this MUCH easier on yourself and just do a form POST into the iframe. Hekc, you

var scoping cfscript in a CFC

2010-02-01 Thread Chad Gray
When putting cfscript in a CFC function do you need to use cfset var foo = on variables created in the cfscript? Thanks, Chad ~| Want to reach the ColdFusion community with something they want? Let them know on the House

Re: var scoping cfscript in a CFC

2010-02-01 Thread Matt Quackenbush
Why wouldn't you simply do... cfscript var foo = bar; /cfscript ? But yes, you still have to var scope them. Sent from my iPhone On Feb 1, 2010, at 10:46, Chad Gray cg...@careyweb.com wrote: When putting cfscript in a CFC function do you need to use cfset var foo = on variables

RE: var scoping cfscript in a CFC

2010-02-01 Thread Chad Gray
Sure, that would read better. Thanks! -Original Message- From: Matt Quackenbush [mailto:quackfu...@gmail.com] Sent: Monday, February 01, 2010 11:54 AM To: cf-talk Subject: Re: var scoping cfscript in a CFC Why wouldn't you simply do... cfscript var foo = bar; /cfscript

Re: cfscript for cfsetting

2010-01-27 Thread Scott Brady
Which would be odd, since I believe the claim for CF9 was that you can theoretically do everything in cfscript (though writing queries blows in it, you can still do it). Scott On Tue, Jan 26, 2010 at 1:17 PM, Jason Durham jdur...@cti-stl.com wrote: That link is for the CFML equivalents

Re: cfscript for cfsetting

2010-01-27 Thread Raymond Camden
That's the rub theoretically everything ;) Hopefully it will continue to grow until it hits 100%. On Wed, Jan 27, 2010 at 5:24 AM, Scott Brady dsbr...@gmail.com wrote: Which would be odd, since I believe the claim for CF9 was that you can theoretically do everything in cfscript (though

cfscript for cfsetting

2010-01-26 Thread Carol F
I am learning to program using cfscript instead of cf tags. What is the CFSCRIPT equivalent for the CFSETTING tag? Does anybody know if the CF9 Live Docs are going to updated with the new CFSCRIPT equivalents? Thanks

Re: cfscript for cfsetting

2010-01-26 Thread Matt Quackenbush
The CF9 docs have had this ever since CF9 was released. http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSe9cbe5cf462523a02805926a1237efcbfd5-7fff.html ~| Want to reach the ColdFusion community with something they want?

Re: cfscript for cfsetting

2010-01-26 Thread Carol F
sorry, I saw that page before, but I could not find cfsetting, or is it somewhere buried there? On Tue, Jan 26, 2010 at 10:23 AM, Matt Quackenbush quackfu...@gmail.comwrote: The CF9 docs have had this ever since CF9 was released.

RE: cfscript for cfsetting

2010-01-26 Thread Jason Durham
That link is for the CFML equivalents in CFScript. If it's not there... there is no equivalent. :) -Original Message- From: Carol F [mailto:cfcn...@gmail.com] Sent: Tuesday, January 26, 2010 2:04 PM To: cf-talk Subject: Re: cfscript for cfsetting sorry, I saw that page before, but I

Re: cfscript for cfsetting

2010-01-26 Thread Gerald Guido
I would try doing a cfdump and see what that gets you cfdump var=#setting()# Next I would try to guess the order of the arguments if it does exist or You can write your own function for it using something like so and inject it into your CFC or include it as a UDF. I would imagine that this

Re: cfscript for cfsetting

2010-01-26 Thread Carol F
Ok thanks everyone! On Tue, Jan 26, 2010 at 12:17 PM, Jason Durham jdur...@cti-stl.com wrote: That link is for the CFML equivalents in CFScript. If it's not there... there is no equivalent. :) -Original Message- From: Carol F [mailto:cfcn...@gmail.com] Sent: Tuesday, January 26

convert this cfscript back to tag?

2009-12-10 Thread Glyn Jackson
Hi all, could someone convert this cfscript back to tag? for(i=1;i lte listlen(#form.whatToUpdate#,,);i++){ tempVal = #listgetat(form.whatToUpdate,i,,)#; form.ID = #tempVal#; //Option ID form.newRank = form[rank_ #tempVal#]; } thanks

RE: convert this cfscript back to tag?

2009-12-10 Thread DURETTE, STEVEN J (ATTASIAIT)
[mailto:glyn.jack...@newebia.co.uk] Sent: Thursday, December 10, 2009 9:43 AM To: cf-talk Subject: convert this cfscript back to tag? Hi all, could someone convert this cfscript back to tag? for(i=1;i lte listlen(#form.whatToUpdate#,,);i++){ tempVal = #listgetat(form.whatToUpdate,i

Re: convert this cfscript back to tag?

2009-12-10 Thread Steve Bryant
cfloop list=#form.whatToUpdate# index=tempVal cfset Form.ID = tempVal!--- Option ID --- cfset Form.newRank = Form[rank_#tempVal#] /cfloop ~| Want to reach the ColdFusion community with something they want? Let

Re: convert this cfscript back to tag?

2009-12-10 Thread s. isaac dealey
cfloop index=i from=1 to=#listlen(form.whattoUpdate)# cfset tempVal = listgetat(form.whatToUpdate,i,,) / cfset form.ID = tempVal / cfset form.newRank = form[rank_ tempVal] / /cfloop -- s. isaac dealey :: AutLabs Creating meaningful employment for people with Autism

RE: convert this cfscript back to tag?

2009-12-10 Thread Dave Phillips
[mailto:glyn.jack...@newebia.co.uk] Sent: Thursday, December 10, 2009 8:43 AM To: cf-talk Subject: convert this cfscript back to tag? Hi all, could someone convert this cfscript back to tag? for(i=1;i lte listlen(#form.whatToUpdate#,,);i++){ tempVal = #listgetat(form.whatToUpdate,i

RE: convert this cfscript back to tag?

2009-12-10 Thread Mark Kruger
]/ /cfloop Mark A. Kruger, CFG, MCSE (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: Glyn Jackson [mailto:glyn.jack...@newebia.co.uk] Sent: Thursday, December 10, 2009 8:43 AM To: cf-talk Subject: convert this cfscript back to tag? Hi

re: convert this cfscript back to tag?

2009-12-10 Thread Jason Fisher
cfloop list=#form.whatToUpdate# index=i cfset form.ID = i / cfset form.newRank = form[rank_ i ] / /cfloop ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion

Re: CFScript - what's the advantage?

2009-10-05 Thread s. isaac dealey
Isn't a cfloop from=x to =y index=i step=z a counter loop? Yes, it is. The difference is that the implementation is slightly less flexible than the script version, but only slightly so, and only noticeably so in edge cases that most of us will never see or touch or even hear about. x =

Re: CFScript - what's the advantage?

2009-10-05 Thread Dominic Watson
One of the reasons that Adobe have quoted is to ease migration from other languages. Attracting more developers being the goal. Personally, my eyes prefer cfscript stylee unless I'm outputting html / xml. Dominic 2009/10/5 Mike Kear afpwebwo...@gmail.com I've been trying to see what's

Re: CFScript - what's the advantage?

2009-10-05 Thread Tony Bentley
Faster to read and type when working with blocks of code. cfset var = '' vs var = ''; The other thing I like is that it enforces more of a MVC approach. Less variable declaration nested inside of your output tags and you'll find yourself writing logic outside of the HTML output.

Re: CFScript - what's the advantage?

2009-10-05 Thread Rick Root
I would generally agree that cfscript is prettier and easier to read and we should be able to do everything in cfscript. I would more likely use it for component development where output is not typical, and the ability to build whole cfcs in cfscript is cool. Rick

CFScript - what's the advantage?

2009-10-04 Thread Mike Kear
I've been trying to see what's the benefit of enhancing CFScript. There are a couple of reasons I can think of, but am I missing something? Are there more significant reasons for enhancing CFScript than I have here? Like for example performance issues? [A] I like to code using

Re: CFScript - what's the advantage?

2009-10-04 Thread Barney Boisvert
, barneyb -- Barney Boisvert bboisv...@gmail.com http://www.barneyb.com/ On Oct 4, 2009, at 10:05 PM, Mike Kear afpwebwo...@gmail.com wrote: I've been trying to see what's the benefit of enhancing CFScript. There are a couple of reasons I can think of, but am I missing something

Re: CFScript - what's the advantage?

2009-10-04 Thread James Holmes
, Mike Kear afpwebwo...@gmail.com wrote: I've been trying to see what's the benefit of enhancing CFScript. There are a couple of reasons I can think of,  but am I missing something?  Are there more significant reasons for enhancing CFScript than I have here?     Like for example performance

CFScript issue

2009-08-31 Thread Phillip Vector
Ok. I'm at a loss and could use another pair of eyes on this... What I have is an array of items that the customer bought (aAutoShipLinesOld) and I also have a new list (aAutoShipLines) of the items they want now. What I'm trying to do is to put a log record into the table so that it will show

Try/catch rethrow in cfscript?

2008-11-21 Thread Gaulin, Mark
Hi Is there any way to rethrow an exception within a cfscript try/catch block? (In case you are wondering, you cannot use cfrethrow in a cffunction-defined UDF to get around the problem... cfrethrow must be directly nested inside a cfcatch block.) - Ok, I found a work-around

Re: Try/catch rethrow in cfscript?

2008-11-21 Thread Nathan Strutz
Mark, No, there's no rethrow in cfscript :( The only real workaround is to use tags for the whole thing :( nathan strutz [Blog and Family @ http://www.dopefly.com/] [AZCFUG Manager @ http://www.azcfug.org/] On Fri, Nov 21, 2008 at 11:56 AM, Gaulin, Mark [EMAIL PROTECTED]wrote: Hi

Best Practice: Looping over a query in cfscript?

2008-11-20 Thread Andy Matthews
So yesterday I was working in cfscript and needed to loop over a query. I reviewed my options and decided for elegance sake that a for / in loop was choice. Only problem is that for / in loops in cfscript can't be used with query objects. After trying a few things, I fell back and punted

Re: Best Practice: Looping over a query in cfscript?

2008-11-20 Thread Dominic Watson
however. Here is a neat but undocumented way to loop a query in cfscript: cfscript foo = QueryNew(''); bar = [1,2,3,4]; QueryAddColumn(foo,'bar','integer',bar); while(foo.next()){ writeoutput(foo.bar[foo.getCurrentRow()]); } /cfscript

Re: Best Practice: Looping over a query in cfscript?

2008-11-20 Thread Jason Fisher
This isn't looping over the query, though, right? It's looping over the columns in the first row only. Looks like the SiteInfo.theme struct is simply a mirror of the first row of the query when all is said and done. Is that what you're going for?

RE: Best Practice: Looping over a query in cfscript?

2008-11-20 Thread Andy Matthews
You're right...with cfscript though, you can't easily loop over the query, at least not in what I'd consider an elegant way. -Original Message- From: Jason Fisher [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2008 9:22 AM To: cf-talk Subject: Re: Best Practice: Looping over

RE: Best Practice: Looping over a query in cfscript?

2008-11-20 Thread Andy Matthews
NICE That's the sort of thing I'm looking for Dominic! Thanks! -Original Message- From: Dominic Watson [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2008 9:24 AM To: cf-talk Subject: Re: Best Practice: Looping over a query in cfscript? Hm, I'd think I'd do that loop

RE: Best Practice: Looping over a query in cfscript?

2008-11-20 Thread Chuck
Here is how I loop over a query in cfscript. Quick, simple and easy. cfscript // Create Query myQry = QueryNew(ColumnA,ColumnB,ColumnC,VarChar,VarChar,VarChar); // Load Query With Data for (i=1; i LTE 10; i=i+1){ QueryAddRow(myQry, 1

Re: CFScript for loop broken? (aka HELP!!)

2008-11-20 Thread Daniel Jimenez
@Daniel, Glad that worked for you. Out of curiosity, don't you need LTE (rather than just LT) to get your full loop? A bit OT, but seems like you'd be missing some results if you only have the LT test? cfscript test = [test1,test2]; for (awesomevariable = 1; awesomevariable LTE

CFScript for loop broken? (aka HELP!!)

2008-11-19 Thread Daniel Jimenez
Thanks in advance for any advice anyone can give. I'm having a very odd problem where, after running for a period of time, all for loops in CFScript break. What I have is the following very, very simple sample code below: cfset test = [test1,test2] cfscript for(awesomevariable=1

Re: CFScript for loop broken? (aka HELP!!)

2008-11-19 Thread Daniel Jimenez
for loops in CFScript break. What I have is the following very, very simple sample code below: cfset test = [test1,test2] cfscript for(awesomevariable=1; awesomevariable LT (ArrayLen(test)); awesomevariable = awesomevariable+1) { writeOutput(test[awesomevariable]); } /cfscript

Re: CFScript for loop broken? (aka HELP!!)

2008-11-19 Thread Barney Boisvert
anyone can give. I'm having a very odd problem where, after running for a period of time, all for loops in CFScript break. What I have is the following very, very simple sample code below: cfset test = [test1,test2] cfscript for(awesomevariable=1; awesomevariable LT (ArrayLen(test

RE: CFScript for loop broken? (aka HELP!!)

2008-11-19 Thread Mark Kruger
are doing... } -Mark Mark A. Kruger, CFG, MCSE (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2008 12:29 PM To: cf-talk Subject: Re: CFScript for loop broken

RE: CFScript for loop broken? (aka HELP!!)

2008-11-19 Thread Mark Kruger
:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2008 12:42 PM To: cf-talk Subject: RE: CFScript for loop broken? (aka HELP!!) Barney, Unusual syntax for a for loop... Looks more like a while loop. I would have expected something like... for(awesomevariable=1; awesomevariable LT (ArrayLen(test

Re: CFScript for loop broken? (aka HELP!!)

2008-11-19 Thread Barney Boisvert
: CFScript for loop broken? (aka HELP!!) Is that code in a CFC that uses 'awesomevariable' and/or 'test' as a variable name within another method? If so, just var-scope everything and the problem should vanish. cheers, barneyb On Wed, Nov 19, 2008 at 9:38 AM, Daniel Jimenez [EMAIL PROTECTED

Re: CFScript for loop broken? (aka HELP!!)

2008-11-19 Thread Daniel Jimenez
Is that code in a CFC that uses 'awesomevariable' and/or 'test' as a variable name within another method? If so, just var-scope everything and the problem should vanish. cheers, barneyb Nope you're seeing it raw in CFM page. The CFM we use was mentioned previously as being

Re: CFScript for loop broken? (aka HELP!!)

2008-11-19 Thread Dominic Watson
Further more this only happens with a for loop inside of a cfscript, this does NOT happen inside of a cfloop! A possible reason for this is that cfloop will not evaluate the ArrayLen on every iteration of the loop which is very different. While there doesn't appear to be a good reason

Re: CFScript for loop broken? (aka HELP!!)

2008-11-19 Thread Daniel Jimenez
Further more this only happens with a for loop inside of a cfscript, this does NOT happen inside of a cfloop! A possible reason for this is that cfloop will not evaluate the ArrayLen on every iteration of the loop which is very different. While there doesn't appear to be a good reason

Re: CFScript for loop broken? (aka HELP!!)

2008-11-19 Thread Daniel Jimenez
An update for those who are interested. I've switched to the 64 bit Sun Hotspot JVM and the problem seems to have cleared up. It appears there might be some JRockit / CF8x64 issues. ~| Adobe® ColdFusion® 8 software 8 is the

Re: CFScript for loop broken? (aka HELP!!)

2008-11-19 Thread Jason Fisher
@Daniel, Glad that worked for you. Out of curiosity, don't you need LTE (rather than just LT) to get your full loop? A bit OT, but seems like you'd be missing some results if you only have the LT test? cfscript test = [test1,test2]; for (awesomevariable = 1; awesomevariable LTE (ArrayLen

RE: verity cfscript

2008-10-08 Thread Adrian Lynch
:OD Adrian Building a DB of errors at http://cferror.org/ -Original Message- From: Dave l Sent: 08 October 2008 06:50 To: cf-talk Subject: Re: verity cfscript Yes and no dave.. I figured as much when I was doing it but if it does index the source code then why wouldn't it index all

Re: verity cfscript

2008-10-08 Thread Raymond Camden
index the source code then why wouldn't it index all of the source code and not just whats inside a cfscript tag? Or why would it not index the source code when moved inside a cfset tag instead of cfscript? Or why would I have the EXACT same code on other pages and they don't show

Re: verity cfscript

2008-10-08 Thread Dave Watts
I figured as much when I was doing it but if it does index the source code then why wouldn't it index all of the source code and not just whats inside a cfscript tag? Or why would it not index the source code when moved inside a cfset tag instead of cfscript? Or why would I have

Re: verity cfscript

2008-10-08 Thread Dave l
in between tags which might explain why it is happening with cfscript but not cfset. Verity works well for document searching but I still am a little puzzled about it. Anyways... just talked with client and we are pulling it and looking at just putting all the info into a db and making it just

Re: verity cfscript

2008-10-08 Thread Dave Watts
I get that when I tell it to index a cfm page that it indexes the page, I just think it would make more sense to index the resulting output and not the code. When google indexes the pages it doesn't index the source code per-say. When Google indexes the pages, it fetches them via HTTP.

Re: verity cfscript

2008-10-08 Thread James Holmes
We did this using Oracle Text for a number of apps a while ago and I've never looked back. Other DBs have good free text indexing tools too. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2008/10/9 Dave l Anyways... just talked with client and we are pulling

verity cfscript

2008-10-07 Thread Dave l
I have a verity collection and it is picking up some cfm code. Now of course i can take out the .cfm .cfml in the collection code but then it doesn't index actual .cfm pages which is needed (Like this-page.cfm) The only cfm code it seams to be picking up is inside of cfscript blocks and so

RE: verity cfscript

2008-10-07 Thread Adrian Lynch
it as a user sees it. Let us know if you find out different. Adrian Building a DB of errors at http://cferror.org/ -Original Message- From: Dave l Sent: 07 October 2008 21:09 To: cf-talk Subject: verity cfscript I have a verity collection and it is picking up some cfm code. Now of course

Re: verity cfscript

2008-10-07 Thread Dave l
code? I can see searching the resulting output since that is what you think it actually should be searching. It is also weird that it is just picking out things inside of cfscript, so if it was actually grabbing all the source code then you would see more code but there isnt. If this is how

RE: verity cfscript

2008-10-07 Thread Adrian Lynch
Subject: Re: verity cfscript I have seen the vspider but there is too many ?'s and not enough time to figure out all i need for that. It's just seems odd that in all the books and examples that it doesn't mention this and the default files include .cfml .cfm but who would actually want it to search

Re: verity cfscript

2008-10-07 Thread Dave l
No there is no cfsets in there. Whats even weirder is that on some pages it indexes everything in the top cfscript and other times it only indexes a part of it. Ok now the weirder part is that if I take out the cfscript and put the vars in cfsets it works fine. But of course that really isn't

Re: verity cfscript

2008-10-07 Thread Dave l
some pages have the exact same script and they don't show but other pages do.. very weird No there is no cfsets in there. Whats even weirder is that on some pages it indexes everything in the top cfscript and other times it only indexes a part of it. Ok now the weirder part is that if I

Re: verity cfscript

2008-10-07 Thread Dave Watts
I have a verity collection and it is picking up some cfm code. Now of course i can take out the .cfm .cfml in the collection code but then it doesn't index actual .cfm pages which is needed (Like this-page.cfm) The only cfm code it seams to be picking up is inside of cfscript blocks

Re: verity cfscript

2008-10-07 Thread Dave l
Yes and no dave.. I figured as much when I was doing it but if it does index the source code then why wouldn't it index all of the source code and not just whats inside a cfscript tag? Or why would it not index the source code when moved inside a cfset tag instead of cfscript? Or why would I

Can I Use This CFScript Like This?

2008-08-29 Thread Rick Faircloth
cfthread... tag of the cfthread that needs to wait. cfscript thread.sleepTimes=0; thread.initialized=false; while ((2_hmls_offices.Status != COMPLETED) (2_hmls_offices.Status != TERMINATED)) { sleep(2000); thread.sleeptimes

RE: Can I Use This CFScript Like This?

2008-08-29 Thread Weidler, Wilfred C.
: Friday, August 29, 2008 12:10 PM To: CF-Talk Subject: Can I Use This CFScript Like This? I'm trying to set up a way to check the status of threads and implement a sleep function that loops and delays a following thread's initialization until the status of the first thread is Completed. I found

RE: Can I Use This CFScript Like This?

2008-08-29 Thread Rick Faircloth
Well... my attempt didn't work. After emptying the database tables that are filled with data upon running the .cfm file with the threads, all the tables were filled but the one with the cfscript in it. Chuck, I guess that I would use your java sleep code like so? cfloop from=1 to=1000 cfif

RE: Can I Use This CFScript Like This?

2008-08-29 Thread Weidler, Wilfred C.
Rick, That code is ran in a cfscript block. You only have to create the object one. So the code would look something like this. cfscript go_to = createObject(java, java.lang.Thread); /cfscript Or if you prefer tags cfset go_to = createObject(java, java.lang.Thread) cfloop from=1

RE: Can I Use This CFScript Like This?

2008-08-29 Thread Rick Faircloth
Thanks, Chuck! I'll give that a go. Rick -Original Message- From: Weidler, Wilfred C. [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2008 3:50 PM To: CF-Talk Subject: RE: Can I Use This CFScript Like This? Rick, That code is ran in a cfscript block. You only have

cfscript question

2008-08-26 Thread Scott Stewart
Is it possible to do a query output loop in cfscript using something other than WriteOutput? -- Scott Stewart ColdFusion Developer Office of Research Information Systems Research amp; Economic Development University of North Carolina at Chapel Hill Phone:(919)843-2408 Fax: (919)962-3600 Email

Re: cfscript question

2008-08-26 Thread Charlie Griefer
On Tue, Aug 26, 2008 at 10:45 AM, Scott Stewart [EMAIL PROTECTED]wrote: Is it possible to do a query output loop in cfscript using something other than WriteOutput? obvious question is... why? :) for (i=1; i lt queryname.recordcount; i=i+1) { // you can pretty that up a bit if you're on CF8

Re: cfscript question

2008-08-26 Thread Brad Wood
with this though. If I am writing code that is outputting HTML etc, I usually do it in tags because that is what makes the most sense. I generally reserve cfscript for logic that doesn't involve output. ~Brad - Original Message - From: Scott Stewart [EMAIL PROTECTED] To: CF-Talk cf-talk

Re: cfscript question

2008-08-26 Thread Scott Stewart
trying to make sense out of some screwy logic that someone else did although I'm about ready to rewrite it with tags... Charlie Griefer wrote: On Tue, Aug 26, 2008 at 10:45 AM, Scott Stewart [EMAIL PROTECTED]wrote: Is it possible to do a query output loop in cfscript using something

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