Re: CF9 to CF11 cfscript

2014-08-11 Thread Rob Voyle
Hi Adam Its the end of a workshop registration form where multiple participants can be registered. For each participant a series of emails are generated to both the participant and the workshop host, and the participant information is entered into a data bases. The page is then paused for a

CF9 to CF11 cfscript

2014-08-10 Thread Rob Voyle
Hi folks Migrating from cf9 to cf11 cfscript thread = CreateObject(java, java.lang.Thread); thread.sleep(4000); /cfscript is now giving an error message invalid token What should the syntax be. I simply want the page to pause while data is entered into a database. Thanks Rob

Re: CF9 to CF11 cfscript

2014-08-10 Thread Adam Cameron
operations in CFML are blocking by default. It'd be good to see more of your code to cast some light on what you're doing here...? -- Adam On 10 August 2014 15:56, Rob Voyle robvo...@voyle.com wrote: Hi folks Migrating from cf9 to cf11 cfscript thread = CreateObject(java, java.lang.Thread

cfscript assistance

2013-11-15 Thread Stephens, Larry V
I've stayed away from cfscript but now I'm looking at it in conjunction with writing Excel spreadsheets. I looked at https://learn.adobe.com/wiki/display/coldfusionen/cfscript and then https://learn.adobe.com/wiki/display/coldfusionen/Extending+ColdFusion+Pages+with+CFML+Scripting because I

Re: cfscript assistance

2013-11-15 Thread Russ Michaels
try these tools, you may have more luck http://carehart.org/cf411/#excel On Fri, Nov 15, 2013 at 2:35 PM, Stephens, Larry V steph...@iu.edu wrote: I've stayed away from cfscript but now I'm looking at it in conjunction with writing Excel spreadsheets. I looked at https://learn.adobe.com

Re: cfscript assistance

2013-11-15 Thread Matt Quackenbush
On Fri, Nov 15, 2013 at 9:35 AM, Stephens, Larry V steph...@iu.edu wrote: cfscript for ( x=1; x=GetB.Recordcount; x=x+1) { if GetB.bcode[x] NEQ xcampus { This throws an invalid construct error: ColdFusion was looking at the following text: GetB.bcode ? What am

Re: cfscript assistance

2013-11-15 Thread Dave Watts
cfscript for ( x=1; x=GetB.Recordcount; x=x+1) { if GetB.bcode[x] NEQ xcampus { This throws an invalid construct error: ColdFusion was looking at the following text: GetB.bcode ? What am I missing? if ( GetB.bcode[x] != xcampus ) { // do something

RE: cfscript assistance

2013-11-15 Thread Stephens, Larry V
Thanks. See below -Original Message- From: Matt Quackenbush [mailto:quackfu...@gmail.com] Sent: Friday, November 15, 2013 9:45 AM To: cf-talk Subject: Re: cfscript assistance On Fri, Nov 15, 2013 at 9:35 AM, Stephens, Larry V steph...@iu.edu wrote: cfscript for ( x=1

RE: cfscript assistance

2013-11-15 Thread Stephens, Larry V
Ah - I missed part of Matt's response and Dave said the same thing. It was the () that was throwing the error. Should have seen that... Thanks. -Original Message- From: Matt Quackenbush [mailto:quackfu...@gmail.com] if GetB.bcode[x] NEQ xcampus { if ( GetB.bcode[x]

Re: cfscript queries error in base.cfc

2013-10-15 Thread Kumar Shah
You get same error without the setName aspect: cfscript local.qryObj = new Query(datasource=PNGOasis); local.qryObj.setSQL( INSERT INTO PNGOasisExt.dbo.Test(testValue) VALUES ('test value') ); local.qryObj.execute(); /cfscript Error: 11:01:30.030 - Expression Exception - in C:/ColdFusion9

Re: cfscript queries error in base.cfc

2013-10-15 Thread Raymond Camden
Weird. Not that it matters, but try this mod: local.qryObj = new com.adobe.coldfusion.query(); local.qryObj.setDatasource(PNGOasis); then continue On Tue, Oct 15, 2013 at 10:02 AM, Kumar Shah shahku...@gmail.com wrote: You get same error without the setName aspect: cfscript

Re: cfscript queries error in base.cfc

2013-10-15 Thread Raymond Camden
com.adobe.coldfusion.query(); local.qryObj.setDatasource(PNGOasis); then continue On Tue, Oct 15, 2013 at 10:02 AM, Kumar Shah shahku...@gmail.com wrote: You get same error without the setName aspect: cfscript local.qryObj = new Query(datasource=PNGOasis); local.qryObj.setSQL( INSERT

cfscript queries error in base.cfc

2013-10-14 Thread Kumar Shah
This is the first time I am creating components wholly in cfscript. When running update or insert statements via the cfscript query functions an error gets recorded like: 22:52:17.017 - Expression Exception - in C:/ColdFusion9/CustomTags/com/adobe/coldfusion/base.cfc : line 460

Re: cfscript queries error in base.cfc

2013-10-14 Thread Raymond Camden
it. If you get rid of the setname aspect, which I don't think you need, does it work ok? On Sun, Oct 13, 2013 at 9:59 PM, Kumar Shah shahku...@gmail.com wrote: This is the first time I am creating components wholly in cfscript. When running update or insert statements via the cfscript query

Re: cfscript queries error in base.cfc

2013-10-14 Thread Nando
be seeing it. If you get rid of the setname aspect, which I don't think you need, does it work ok? On Sun, Oct 13, 2013 at 9:59 PM, Kumar Shah shahku...@gmail.com wrote: This is the first time I am creating components wholly in cfscript. When running update or insert statements via

Re[6]: cfscript zip example?

2012-06-26 Thread Michael David
Subject: Re: Re[4]: cfscript zip example? Michael, Start a new thread. Start a new subject. Don't hijack ;) nathan strutz [ www.dopefly.com ] [hi.im/nathanstrutz] [about.me/nathanstrutz] On Mon, Jun 25, 2012 at 6:09 PM, Michael David li...@michaeldavid.com wrote: Ok, I'll bite. :) How is Railo

Re: cfscript zip example?

2012-06-25 Thread Nathan Strutz
Any particular reason you don't use the cfzip tag from ColdFusion 8+? Sorry, that's probably not helpful, but hey sometimes people don't read the docs. If you're on Adobe software, I think nothing before CF8 is even supported anymore. nathan strutz [www.dopefly.com] [hi.im/nathanstrutz]

Re: cfscript zip example?

2012-06-25 Thread Paul Hastings
On 6/25/2012 1:07 PM, Nathan Strutz wrote: Any particular reason you don't use the cfzip tag from ColdFusion 8+? project CFCs are all in cfscript. Sorry, that's probably not helpful, but hey sometimes people don't read the docs. If you're on Adobe software, I think nothing before CF8

Re: cfscript zip example?

2012-06-25 Thread Andrew Scott
PM, Paul Hastings p...@sustainablegis.comwrote: On 6/25/2012 1:07 PM, Nathan Strutz wrote: Any particular reason you don't use the cfzip tag from ColdFusion 8+? project CFCs are all in cfscript. Sorry, that's probably not helpful, but hey sometimes people don't read the docs

Re: cfscript zip example?

2012-06-25 Thread Raymond Camden
There is no script support for cfzip. He is using a script based CFC. On Mon, Jun 25, 2012 at 4:08 AM, Andrew Scott andr...@andyscott.id.au wrote: Paul, Nathan is asking is there any reason you are not using ColdFusion 8 and its tag/script based support for zip, instead of a 3rd party

Re: cfscript zip example?

2012-06-25 Thread Matt Quackenbush
Unless you're on Railo, of course. :-) http://wiki.getrailo.org/wiki/TAG:CFZIP On Mon, Jun 25, 2012 at 9:48 AM, Raymond Camden raymondcam...@gmail.comwrote: There is no script support for cfzip. He is using a script based CFC. On Mon, Jun 25, 2012 at 4:08 AM, Andrew Scott

Re: cfscript zip example?

2012-06-25 Thread Nathan Strutz
Ok, so to clarify, are you using the zip.cfc from https://github.com/CFCommunity/CFScript-Community-Components ? Sorry, I don't think I know Russ, who it looks like authored it. nathan strutz [www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz] On Mon, Jun 25, 2012 at 1:13 AM, Paul

Re: cfscript zip example?

2012-06-25 Thread Andrew Scott
Hmmm, for some reason I thought there had been some functions for zip... Oh well, more tags not converted to script that adobe think we don't use :-( -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Tue, Jun 26, 2012 at

Re: cfscript zip example?

2012-06-25 Thread Raymond Camden
To be fair, we've been expanded native script functionality _and_ the Script Stuff as CFCs in each release. It's getting there. On Mon, Jun 25, 2012 at 10:05 AM, Andrew Scott andr...@andyscott.id.au wrote: Hmmm, for some reason I thought there had been some functions for zip... Oh well, more

Re: cfscript zip example?

2012-06-25 Thread Andrew Scott
Yes, we can agree getting there. But would it have not been better to sit down and think that people are going to want cfscript version of everything, and hold of releasing until it is done and not 4 versions later? -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http

Re: cfscript zip example?

2012-06-25 Thread Dave Watts
But would it have not been better to sit down and think that people are going to want cfscript version of everything, and hold of releasing until it is done and not 4 versions later? Probably not - you can either get some things now, or maybe get everything later. Note the word maybe. Dave

Re: cfscript zip example?

2012-06-25 Thread Alan Rother
This topic has devolved a bit - let's see if we can actually help Paul Paul, are you just looking for an example of creating a zip file from let's say, a specific directory? I'd be happy to send you a couple of working examples if you tell just what you need it to do. =] -- Alan Rother

Re[2]: cfscript zip example?

2012-06-25 Thread Michael David
Seriously! I sure wish that Adobe would provide a cfscript solution for every cftag, for those of us who prefer the former. -- Cheers! Michael David -- Original Message -- From: Andrew Scott andr...@andyscott.id.au To: cf-talk cf-talk@houseoffusion.com Sent: 6/25/2012 11:05:08

Re: Re[2]: cfscript zip example?

2012-06-25 Thread Matt Quackenbush
It's called Railo. :D On Mon, Jun 25, 2012 at 12:52 PM, Michael David li...@michaeldavid.comwrote: Seriously! I sure wish that Adobe would provide a cfscript solution for every cftag, for those of us who prefer the former. -- Cheers! Michael David -- Original Message

Re: Re[2]: cfscript zip example?

2012-06-25 Thread Raymond Camden
David li...@michaeldavid.comwrote: Seriously! I sure wish that Adobe would provide a cfscript solution for every cftag, for those of us who prefer the former. -- Cheers! Michael David -- Original Message -- From: Andrew Scott andr...@andyscott.id.au To: cf-talk cf-talk

Re: Re[2]: cfscript zip example?

2012-06-25 Thread Judah McAuley
, Matt Quackenbush quackfu...@gmail.com wrote: It's called Railo. :D On Mon, Jun 25, 2012 at 12:52 PM, Michael David li...@michaeldavid.comwrote: Seriously! I sure wish that Adobe would provide a cfscript solution for every cftag, for those of us who prefer the former. -- Cheers

Re: cfscript zip example?

2012-06-25 Thread Paul Hastings
On 6/26/2012 1:35 AM, Raymond Camden wrote: Errr, yes, so sorry we couldn't do _everything_ people wanted in CF10. CF11 will have every feature requested. Ever. the cfcommunity's done a good job w/some of what was missing--it's just this one case where *i'm* not getting the syntax. you guys

Re[4]: cfscript zip example?

2012-06-25 Thread Michael David
To: cf-talk cf-talk@houseoffusion.com Sent: 6/25/2012 2:23:14 PM Subject: Re: Re[2]: cfscript zip example? It's called Railo. :D On Mon, Jun 25, 2012 at 12:52 PM, Michael David li...@michaeldavid.com wrote: Seriously! I sure wish that Adobe would provide a cfscript solution for every cftag

Re: cfscript zip example?

2012-06-25 Thread Paul Hastings
On 6/25/2012 11:24 PM, Alan Rother wrote: This topic has devolved a bit - let's see if we can actually help Paul well since this list is also a part of the cf community, posting a few simple cfscript zip examples for all the function's actions would be a good idea. an even better one would

Re: cfscript zip example?

2012-06-25 Thread Raymond Camden
On Mon, Jun 25, 2012 at 8:14 PM, Paul Hastings p...@sustainablegis.com wrote: and FYI i would have simply contacted the author (russplaysguitar) if github actually had functionality for that. RIAForge let's you contact project owners! ;) --

Re: Re[4]: cfscript zip example?

2012-06-25 Thread Nathan Strutz
Subject: Re: Re[2]: cfscript zip example? It's called Railo. :D On Mon, Jun 25, 2012 at 12:52 PM, Michael David li...@michaeldavid.com wrote: Seriously! I sure wish that Adobe would provide a cfscript solution for every cftag, for those of us who prefer the former

Re: cfscript zip example?

2012-06-25 Thread Nathan Strutz
: On 6/25/2012 11:24 PM, Alan Rother wrote: This topic has devolved a bit - let's see if we can actually help Paul well since this list is also a part of the cf community, posting a few simple cfscript zip examples for all the function's actions would be a good idea. an even better one

Re: cfscript zip example?

2012-06-25 Thread Paul Hastings
On 6/26/2012 9:24 AM, Nathan Strutz wrote: Paul's got a good idea though. We could really use some solid demos. Paul, why not add the missing test case and the missing demos as separate bug reports on github? They're both good ideas. i would if i 100% understood it in the first place. don't

cfscript zip example?

2012-06-24 Thread Paul Hastings
having a hard time getting my wooly head around the zip.cfc from cfcommunity. anyone know of any code examples for the action zip bits? thanks. ~| Order the Adobe Coldfusion Anthology now!

Re: Converting this java code into cfscript?

2012-06-12 Thread Richard White
Thanks Leigh, made a lot of sense and works perfect!! See http://pastebin.com/M5CNshBp . Looks like my post got cut off again ...   -Leigh ~| Order the Adobe Coldfusion Anthology now!

Converting this java code into cfscript?

2012-06-09 Thread Richard White
Hi, I am having difficulty understanding how i would change the follower Java code into cfscript... specifically the 'new CellRangeAddress' section: CellRangeAddress cellRangeAddress = sheet.getMergedRegion(i); CellRangeAddress newCellRangeAddress = new CellRangeAddress(newRow.getRowNum

Re: Converting this java code into cfscript?

2012-06-09 Thread Leigh
CellRangeAddress cellRangeAddress = sheet.getMergedRegion(i); Just drop the data type declarations in front of the variable names. Then instantiate classes with init() instead of new ClassName( ...). You may also want to break it up for better readability. I am heading out and cannot test

Re: Converting this java code into cfscript?

2012-06-09 Thread Leigh
See http://pastebin.com/M5CNshBp . Looks like my post got cut off again ...   -Leigh ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

RE: Best IDE for cfscript

2012-05-13 Thread Rick Faircloth
for cfscript I'm with Matt, IDEA is great. In many ways, big and small, it increases my productivity and code quality, and just improve the experience of coding all around. It's not without its warts, but it's improving all the time. I'd never go back. Dave Merrill On Mon, May 7, 2012 at 1:45 PM

Re: Best IDE for cfscript

2012-05-12 Thread Dave Merrill
I'm with Matt, IDEA is great. In many ways, big and small, it increases my productivity and code quality, and just improve the experience of coding all around. It's not without its warts, but it's improving all the time. I'd never go back. Dave Merrill On Mon, May 7, 2012 at 1:45 PM, Matt

Best IDE for cfscript

2012-05-07 Thread Robert Rhodes
What is the best IDE for cfcript work? CFBuilder 2? CFEclipse? Or? -RR ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: Best IDE for cfscript

2012-05-07 Thread Eric Roberts
I use CFEclipse with no problems. Not a big fan of CFBuilder. Eric On Mon, May 7, 2012 at 10:46 AM, Robert Rhodes rrhode...@gmail.com wrote: What is the best IDE for cfcript work? CFBuilder 2? CFEclipse? Or? -RR

Re: Best IDE for cfscript

2012-05-07 Thread Cameron Childress
On Mon, May 7, 2012 at 11:46 AM, Robert Rhodes rrhode...@gmail.com wrote: What is the best IDE for cfcript work? CFBuilder 2? CFEclipse? Or? Try them both. Decide for yourself. That are both built on Eclipse, so it's easy to switch. -Cameron ...

Re: Best IDE for cfscript

2012-05-07 Thread Matt Quackenbush
Since it hasn't been mentioned yet, I would also recommend giving Intellij IDEA a shot, *especially* if you work in other languages, too. It was quite a change for me, having used CFE/CFB for many years, but I doubt I could switch back, now. http://www.jetbrains.com/idea/ On Mon, May 7, 2012

Re: Best IDE for cfscript

2012-05-07 Thread Brian Thornton
So there are large line number issues with most.. My backup is a old tool called PFE, Programmers FIle Editor. I've edited 14 GB text files with it. On Mon, May 7, 2012 at 1:21 PM, Eric Roberts ow...@threeravensconsulting.com wrote: I use CFEclipse with no problems.  Not a big fan of

Re: Best IDE for cfscript

2012-05-07 Thread Guust Nieuwenhuis
When I need to do some quick editing I use Notepad++ on Windows or Textwragler on Mac (both free editors). When working on projects I use CFBuilder for all the ColdFusion specific features like Server management, tailview, extensions, ... Don't forget that CFBuilder has a free express

Re: CFScript Book

2012-02-22 Thread Scott Brady
Right. I was talking about why _I_ generally don't like cfscript. But, honestly, if they don't really know how to do anything in javascript, then I'm not sure what they're doing writing CFML (or any web application development language). Scott On Tue, Feb 21, 2012 at 7:27 PM, Aaron Rouse

Re: CFScript Book

2012-02-22 Thread Aaron Rouse
advanced group of CF people developed. On Wed, Feb 22, 2012 at 4:50 AM, Scott Brady dsbr...@gmail.com wrote: Right. I was talking about why _I_ generally don't like cfscript. But, honestly, if they don't really know how to do anything in javascript, then I'm not sure what they're doing

Re: CFScript Book

2012-02-21 Thread Scott Brady
As of CF9, the vast majority of CF can be written in script, if you desire. Almost every tag has a cfscript equivalent (I believe there were a few that didn't make the cut, but I can't recall which ones off-hand). Of course, some things are a bit more tedious doing them in script

Re: CFScript Book

2012-02-21 Thread Aaron Rouse
Agreed and someone could always write themselves some custom functions as wrappers to CF tags for prior versions CF or perhaps even what is missing in the current. To a point at least. I have been a CFScript Nazi for well over a decade now but fully recognize a place for it and a place for when

Re: CFScript Book

2012-02-21 Thread Cameron Childress
On Mon, Feb 20, 2012 at 7:50 PM, Robert Rhodes rrhode...@gmail.com wrote: I do wish Adobe would fill out CF so that one could write mostly in cfscript and avoid cf tags altogether, if desired. It would also help when I end up around small-minded coders who scoff at CF merely because

Re: CFScript Book

2012-02-21 Thread Aaron Rouse
I have worked with CF developers who scoff at any CFScript usage but for reasons most would not assume. They did it because they flat out did not understand the syntax and I am not referring to some abundant overuse of CFScript here. It can sometimes be a balancing act of coding how you want

Re: CFScript Book

2012-02-21 Thread Steve 'Cutter' Blades
You mean I should write a book on CFScript? Fantastic? Betascript Publishing hhhm... Anyone notice the tagline states: ColdFusion Markup Language, JavaScript, BlogCFC Now THAT is interesting... Steve 'Cutter' Blades Adobe Community Professional Adobe Certified Expert Advanced Macromedia

Re: CFScript Book

2012-02-21 Thread Carl Von Stetten
Yeah, or how about the red seal on the cover that says High Quality Content by WIKIPEDIA articles!? LOL :-D On 2/21/2012 11:04 AM, Steve 'Cutter' Blades wrote: You mean I should write a book on CFScript? Fantastic? Betascript Publishing hhhm... Anyone notice the tagline states

Re: CFScript Book

2012-02-21 Thread Billy Cravens
that says High Quality Content by WIKIPEDIA articles!? LOL :-D On 2/21/2012 11:04 AM, Steve 'Cutter' Blades wrote: You mean I should write a book on CFScript? Fantastic? Betascript Publishing hhhm... Anyone notice the tagline states: ColdFusion Markup Language, JavaScript, BlogCFC Now

Re: CFScript Book

2012-02-21 Thread Scott Brady
My main issue with cfscript is that it's easy to confuse at first glance between that and javascript (for cases when you have JS mixed in with CF code, as the legacy app I work on at work has). So, it's not really cfscript's fault as much as a personal bugaboo. Scott On Tue, Feb 21, 2012 at 11

Re: CFScript Book

2012-02-21 Thread Russ Michaels
cfscript to many defeats the who point of why they chose cf in the first place, because it was a html like easy to learn tag based language. When you go down the route of doing all your code in script, using OOP style coding, then surely you would just be better off writing directly in JAVA

Re: CFScript Book

2012-02-21 Thread James Holmes
Well, nobody's better off writing in Java, but C# would be an alternative. On Wednesday, February 22, 2012, Russ Michaels wrote: cfscript to many defeats the who point of why they chose cf in the first place, because it was a html like easy to learn tag based language. When you go down

Re: CFScript Book

2012-02-21 Thread Aaron Rouse
The people I was referring to I am certain do not know how to write anything or much of anything in JavaScript. So it is not a matter of CFScript confusing them into thinking it is JavaScript. On Tue, Feb 21, 2012 at 6:55 PM, Scott Brady dsbr...@gmail.com wrote: My main issue with cfscript

CFScript Book

2012-02-20 Thread Robert Rhodes
Hello to all. Are there any CFScript books out there? I ordered this onw but it was a complete joke. A total waste of money: http://www.barnesandnoble.com/w/cfscript-lambert-m-surhone/1026883099. All suggestions welcome. -RR

Re: CFScript Book

2012-02-20 Thread Cameron Childress
On Mon, Feb 20, 2012 at 10:48 AM, Robert Rhodes rrhode...@gmail.com wrote: Are there any CFScript books out there? I ordered this onw but it was a complete joke. A total waste of money: http://www.barnesandnoble.com/w/cfscript-lambert-m-surhone/1026883099. Is there a reason you want

Re: CFScript Book

2012-02-20 Thread Pete Freitag
For what its worth I have a cfscript cheatsheet here: http://www.petefreitag.com/cheatsheets/coldfusion/cfscript/ It lists much but certainly not all of what you need to know to use cfscript. Feedback, suggestions welcome. -- Pete Freitag - Adobe Community Professional http://foundeo.com

Re: CFScript Book

2012-02-20 Thread Robert Rhodes
Hi Cameron. I know CF very well. I been coding in it for many years. But, I admit, I am a little tagged out. Cfscript feels more elegant, and as I learn more and more javascript, it seems a natural time to try to get completely up to speed on cfscript. I do wish Adobe would fill out CF so

Re: debugging in cfscript

2012-02-09 Thread daniel kessler
you have cf_abort in your code instead of cf_abort() I am using cf_abort. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: debugging in cfscript

2012-02-09 Thread daniel kessler
Looks like the issue is that you have the cf_dump() and cf_abort() calls outside of the curly braces. ok, that's a thought that I hadn't considered. I moved them inside the brackets and now I don't receive an error. Thank you! Unfortunately, I also don't receive the dump or the abort. I

Re: debugging in cfscript

2012-02-09 Thread daniel kessler
Unfortunately, I also don't receive the dump or the abort. I even built an array to dump to simplify the test and assure that there's dumpable data. sigh I guess I'm just not used to this. Maybe the logs will reveal what happened. ok, it looks like the cf_dump() is working. If I put

Re: debugging in cfscript

2012-02-09 Thread Rex
yes, but to call cf_abort, you want to do cf_abort() It's like calling #now# instead of #now()# - Rex On 2/9/2012 5:46 AM, daniel kessler wrote: you have cf_abort in your code instead of cf_abort() I am using cf_abort.

Re: debugging in cfscript

2012-02-09 Thread Carl Von Stetten
Rex, I think cf_abort is a custom tag, not a UDF, so it would not be called using cf_abort(). -Carl On 2/9/2012 9:19 AM, Rex wrote: yes, but to call cf_abort, you want to do cf_abort() It's like calling #now# instead of #now()# - Rex On 2/9/2012 5:46 AM, daniel kessler wrote: you have

Re: debugging in cfscript

2012-02-09 Thread Matt Quackenbush
Nopers. Daniel has an cffunction name=cf_abort in his CFC. See his previous posts in the thread. On Thu, Feb 9, 2012 at 12:04 PM, Carl Von Stetten vonner.li...@vonner.netwrote: Rex, I think cf_abort is a custom tag, not a UDF, so it would not be called using cf_abort(). -Carl On

Re: debugging in cfscript

2012-02-09 Thread Carl Von Stetten
Oops. I missed that. Nevermind! :-[ On 2/9/2012 10:10 AM, Matt Quackenbush wrote: Nopers. Daniel has ancffunction name=cf_abort in his CFC. See his previous posts in the thread. On Thu, Feb 9, 2012 at 12:04 PM, Carl Von Stetten vonner.li...@vonner.netwrote: Rex, I think cf_abort is a

Re: debugging in cfscript

2012-02-08 Thread daniel kessler
I added this to my component, but I'm getting an error while calling it from within the component. cfcomponent hint=Replaces The Package PK_employer cffunction name=cf_abort output=false returntype=void cfabort / /cffunction cffunction name=cf_dump output=false returntype=void

Re: debugging in cfscript

2012-02-08 Thread daniel kessler
with { on line 63, column 39. a script statement beginning with if on line 63, column 17. a cfscript tag beginning on line 52, column 18. a cfscript tag beginning on line 52, column 18. The error occurred in C:\localServer\beatch\cfc\emp.cfc: line 78 76

Re: debugging in cfscript

2012-02-08 Thread Matt Quackenbush
statement beginning with if on line 63, column 17. a cfscript tag beginning on line 52, column 18. a cfscript tag beginning on line 52, column 18. The error occurred in C:\localServer\beatch\cfc\emp.cfc: line 78 76 : //cf_dump(dbResult); 77

Re: debugging in cfscript

2012-02-08 Thread daniel kessler
First off, this is a nearly 4 year old thread. It may or may not apply to what you're working on now. What CFML engine and version are you using? What is the relevant code? I didn't think reposting was a good idea, since there was a thread with a relevant history. I'm using CF7. I posted

Re: debugging in cfscript

2012-02-08 Thread Matt Quackenbush
The error code mentions Line 63 as the start of an if () statement, and Line 52 as the start of the cfscript tag. We'll need probably the entire if () block at the least, as it would seem the issue lies in there. Hard to speculate based solely upon the error message, as CF is notorious

Re: debugging in cfscript

2012-02-08 Thread daniel kessler
The error code mentions Line 63 as the start of an if () statement, and Line 52 as the start of the cfscript tag. We'll need probably the entire if () block at the least, as it would seem the issue lies in there. Hard to speculate based solely upon the error message, as CF is notorious

Re: debugging in cfscript

2012-02-08 Thread Matt Quackenbush
:05 PM, daniel kessler dani...@umd.edu wrote: The error code mentions Line 63 as the start of an if () statement, and Line 52 as the start of the cfscript tag. We'll need probably the entire if () block at the least, as it would seem the issue lies in there. Hard to speculate based solely

Re: debugging in cfscript

2012-02-08 Thread Azadi Saryev
(dbResult);    cf_abort(); else    // other stuff You need to move those two items inside of the }. HTH On Wed, Feb 8, 2012 at 2:05 PM, daniel kessler dani...@umd.edu wrote: The error code mentions Line 63 as the start of an if () statement, and Line 52 as the start of the cfscript tag

CFScript help

2011-08-22 Thread Josh Cesana
far, the only result I get is 'test ' instead of 'test ' CFSCRIPT function spaceFiller(cell, fill, align) { var newcell = ; if (len(cell) EQ 0) { cell = ; } newcell = cell; for (i=1; i EQ len(fill - (len(cell))); i=i+1

Re: CFScript help

2011-08-22 Thread Justin Scott
I'm attemping to create a function that adds spaces either in front of or behind a string. Hi Josh, a couple of things. First, ColdFusion has the LJustify(), RJustify(), and CJustify() functions which will do exactly what you're trying to accomplish already built in. Second, your function

Re: CFScript help

2011-08-22 Thread morgan l
, the only result I get is 'test ' instead of 'test ' CFSCRIPT function spaceFiller(cell, fill, align) { var newcell = ; if (len(cell) EQ 0) { cell = ; } newcell = cell; for (i=1; i EQ len(fill - (len(cell))); i=i+1) { if (align

Re: CFScript help

2011-08-22 Thread Dominic Watson
this test string to have 6 spaces after it, plus the 4 characters in test for a total of 10 characters. I have an align variable for both left and right alignment for the spaces. So far, the only result I get is 'test ' instead of 'test      ' CFSCRIPT    function spaceFiller(cell, fill

Re: CFScript help

2011-08-22 Thread Dominic Watson
Wow: LJustify(), RJustify(), and CJustify() functions. Who woulda thunk it. Brilliant. I guess. On 22 August 2011 17:37, Justin Scott leviat...@darktech.org wrote: I'm attemping to create a function that adds spaces either in front of or behind a string. Hi Josh, a couple of things.  First,

Re: CFScript help

2011-08-22 Thread Justin Scott
Wow: LJustify(), RJustify(), and CJustify() functions. Who woulda thunk it. Brilliant. I guess. Whenever I'm working with people relatively new to CF my number one piece of advice is to become very familiar with the function reference so you don't spend a bunch of time re-writing functions

Re: CFScript help

2011-08-22 Thread Josh Cesana
Thanks all - the built in function is exactly what I needed. I am fairly new to CF so I will definitely spend time learning the functions. Thanks again. ~| Order the Adobe Coldfusion Anthology now!

Dynamic SQL in CFScript

2011-04-26 Thread Kyle McLean
I've been working on a CF9 project, and I'm trying to take full advantage of the cfscript syntax for my components. I have many cases where I'm using dynamic SQL based on the existence of an optional argument in a function. In CF8 and below it'd look something like this: cffunction name

Re: Dynamic SQL in CFScript

2011-04-26 Thread Jeffrey Battershall
Do you have the option of moving your query logic into a stored proc? It would be more secure. Jeff On Tue, Apr 26, 2011 at 2:32 PM, Kyle McLean kmclea...@gmail.com wrote: I've been working on a CF9 project, and I'm trying to take full advantage of the cfscript syntax for my components. I

Re: Dynamic SQL in CFScript

2011-04-26 Thread Raymond Camden
= q.execute().getResult(); Does that make sense? On Tue, Apr 26, 2011 at 1:32 PM, Kyle McLean kmclea...@gmail.com wrote: I've been working on a CF9 project, and I'm trying to take full advantage of the cfscript syntax for my components. I have many cases where I'm using dynamic SQL based

Re: Dynamic SQL in CFScript

2011-04-26 Thread Kyle McLean
It does, but it still looks like it's a little more clunky (in my opinion at least :)) than the tag-based alternative. Bummer, since I much prefer the succinct style of CFSCRIPT for writing pretty much everything else in a component. Thanks for your help everyone! var q = new

Re: Dynamic SQL in CFScript

2011-04-26 Thread Sean Corfield
On Tue, Apr 26, 2011 at 11:32 AM, Kyle McLean kmclea...@gmail.com wrote: cfquery name=testQuery datasource=testDSN SELECT * FROM TBL cfif structKeyExists(arguments.testArg) WHERE COL = '#arguments.testArg#' /cfif /cfquery I know this doesn't help you, since you're on CF9, but I just

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

2011-04-09 Thread James Holmes
That is the greatest thing ever. -- WSS4CF - WS-Security framework for CF http://wss4cf.riaforge.org/ On 9 April 2011 04:55, Judah McAuley ju...@wiredotter.com wrote: Start here, Michael: http://www.pcworld.com/article/224722/new_commodore_64_is_finally_herefor_real.html

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

2011-04-09 Thread Michael Grant
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: 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

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

2011-04-08 Thread Judah McAuley
...@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 stay. I understand lots of people feel differently, but it really sucks (for me) seeing all the new

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

2011-04-07 Thread Jeff Gladnick
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. I understand lots of people feel differently, but it really sucks (for me) seeing all the new great open

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

2011-04-07 Thread Michael Grant
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: 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

  1   2   3   4   5   6   7   8   9   10   >