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]
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 wrote:
>
>
>
> for ( x=1; x<=G
>>
>> 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 somethi
On Fri, Nov 15, 2013 at 9:35 AM, Stephens, Larry V wrote:
>
>
>
> 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?
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 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/wiki/displa
I see you are on CF9. Do you have a copy of CF10? If so, try copying over
the CFCs. This may be something that was fixed.
On Tue, Oct 15, 2013 at 10:13 AM, Raymond Camden wrote:
> Weird. Not that it matters, but try this mod:
>
> local.qryObj = new com.adobe.coldfusion.query();
> local.qryObj.s
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 wrote:
>
> You get same error without the setName aspect:
>
> local.qryObj = new Query(datas
You get same error without the setName aspect:
local.qryObj = new Query(datasource="PNGOasis");
local.qryObj.setSQL("
INSERT INTO PNGOasisExt.dbo.Test(testValue) VALUES ('test value')
");
local.qryObj.execute();
Error:
11:01:30.030 - Expression Exception - in
C:/ColdFusion9/CustomTags/com/adobe
I don't use setName() in my script based queries and it works. If I need a
result back from the query, then I use a different variable name
(v.perviousPayPeriod) from the one I use to construct and execute the query
(v.payPerQ). Here's an example of some working code:
v.payPerQ = new Query();
v.p
Two things.
1) Don't forget that the code behind the script based CFCs is not
encrypted. You can look at base.cfc.
2) The issue seems to be this line:
But - it is wrapped in a try/catch, so you shouldn't be seeing it. If you
get rid of the setname aspect, which I don't think you need, does it
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'
If we have any takers, I would especially love it if someone would create a
demo in the form of an MXUnit test case and issue a pull request. Anyone...
?
In fact, if somebody makes a demo, I can make the test case for you and add
it to the project.
Paul's got a good idea though. We could really
On Mon, Jun 25, 2012 at 8:14 PM, Paul Hastings 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! ;)
--
==
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 be
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 gu
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
Manager
> 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".
Da
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://
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 wrote:
>
> Hmmm, for some reason I thought there had been some functions for zip... Oh
> well, more tags not converted
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 12:4
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 H
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 wrote:
>
> 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
> wrote:
> >
> > Paul, Nathan is as
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 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 library.
>
> --
> Regards,
>
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 library.
--
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/108193156965451149543
On Mon, Jun 25, 2012 at 6:13 P
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 is
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] [about.me
You might be surprised at how many people I come across in the industry who
are making a good solid living writing CF apps but barely can write CSS,
HTML, JavaScript and really even much in regards to SQL. Quite often
though they are using some sort of CF "framework" or other "core" tool that
a m
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 wrote
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 wrote:
>
> My main issue with cfscript is that it's easy
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 t
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 ?
On
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:
This "publisher" releases something like 10,000+ titles a year: they scrape
Wikipedia content and sell it.
http://en.wikipedia.org/wiki/VDM_Publishing
Billy Cravens
bdcrav...@gmail.com
On Feb 21, 2012, at 1:19 PM, Carl Von Stetten wrote:
>
> Yeah, or how about the red seal on the cover th
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:
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
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
a
On Mon, Feb 20, 2012 at 7:50 PM, Robert Rhodes 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 of the
> tags.
I've nev
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
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 (such as
output
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 that
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/ - Cold
On Mon, Feb 20, 2012 at 10:48 AM, Robert Rhodes 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 to only learn CFScrip
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!
http://www.amazon.com/Adobe-C
> 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 th
Wow: LJustify(), RJustify(), and CJustify() functions. Who woulda
thunk it. Brilliant. I guess.
On 22 August 2011 17:37, Justin Scott 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, ColdFusion has
just off the top of my head:
function spaceFiller(cell, fill, align) {
var space = RepeatString(' ', fill - Len(Cell));
return iif(align eq 'R', de(space & cell), de(cell & space));
}
You may need to deal with the scenario of cell having more characters
than the value of fill. Also, if
If you're displaying this in a browser, then HTML is likely the culprit,
condensing multiple spaces into just one. Use non-breaking spaces (or wrap
your output in tags) to get HTML to output multiple spaces.
On Mon, Aug 22, 2011 at 11:19 AM, Josh Cesana wrote:
>
> I'm attemping to create a func
> 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 (
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
Sorry - what?
On Mon, Nov 15, 2010 at 10:33 PM, Andrew Scott wrote:
>
> No annotations in the comments was mentioned to be slower than using the
> other way.
>
> Regards,
> Andrew Scott
> http://www.andyscott.id.au/
>
~|
Order
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
> Subjec
ginal Message-
>> 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
>> wrote:
>&g
mail.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
> wrote:
> > Method one, there is a performance hit when using notations.
>
> Is there? Why so?
On Mon, Nov 15, 2010 at 2:58 PM, Andrew Scott 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
affects metadata so it
Thanks for the advice.
I like method one.
On Mon, Nov 15, 2010 at 5:58 PM, Andrew Scott wrote:
>
> 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...@gma
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
>
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
wrote:
>
> /* This is me agreeing */
>
> I agree!
>
> On Mon, Nov 15, 2010 at 3:35 PM, Matt Quackenbush wrote:
>
>>
/* This is me agreeing */
I agree!
On Mon, Nov 15, 2010 at 3:35 PM, Matt Quackenbush wrote:
>
> No comments driving behavior! :-)
>
>
>
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anth
No comments driving behavior! :-)
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/
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 wrote:
>
> Hey CFers
>
>
> This might
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 wrote:
>
> Which would be odd, since I believe the claim for CF9 was that you can
> theoretically do everything in cfscript (though writing queries blo
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 wrote:
>
> That link is for the CFML equivalents in CFScript. If it's no
day, January 26, 2010 2:04 PM
> To: cf-talk
> Subject: Re: cfscript for cfsetting
>
>
> 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 >wrote:
>
> &
I would try doing a cfdump and see what that gets you
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 would work.
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,
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 wrote:
>
> The CF9 docs have had this ever since CF9 was released.
>
>
> http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSe9cbe5cf462523a02805
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? L
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
~~
Faster to read and type when working with blocks of code.
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.
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
>
> I've been trying to see what's the benefit of enhancing
> 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.
Isn't a
cfloop from=x to =y index=i step=z
a counter loop?
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/
2009/10/5 Barney Boisvert :
>
> You can't express a true counter (for) loop with CFLOOP, only a
> condition loop (while). So that's one reason. Probabl
You can't express a true counter (for) loop with CFLOOP, only a
condition loop (while). So that's one reason. Probably the reason I
use it most often, even over reducing verbosity.
Beyond verbosity and a couple edge cases, I think it's pretty much
entirely personal preference.
cheers,
ba
> @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?
>
>
> test = ["test1","test2"];
> for (awesomevariable = 1; awesomevariable LTE
@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?
test = ["test1","test2"];
for (awesomevariable = 1; awesomevariable LTE (ArrayLen(test));
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 mos
> >> 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
>> 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 for t
>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 http://cf
ebtools.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? (aka HELP!!)
>
> Is that code i
:[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; awesomev
somevariable++;
// whatever else you 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
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]> wrote:
> Thanks in advance for any advice a
Oops, forgot to sign off I was so frustrated.
Thanks in advance to anyone who hopefully has a couple of minutes to tell me
this is something obvious.
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, al
> I'm trying to populate a function call, by looping over the
> record count of a query
What you have looks fine to me. What's the problem, exactly?
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our tra
> yea but...function calls shouldn't have dynamic number of arguments.
Why not?
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern
yea but...function calls shouldn't have dynamic number of arguments.
perhaps u mean to create a list of arguments and pass it in as 1 argument?
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
da
lemme rephrase...
I'm trying to populate a function call, by looping over the record count
of a query
to end up with something like this:
function(sunday_0, mon_0, tues_0)
function(sunday_1, monday_1, tues_1)
etc.
the number is dynamic based on the record count of a query..
code:
if(IsDefine
> Is it possible to do a query output loop in cfscript using
> something other than WriteOutput?
The only way to write any output directly from CFSCRIPT is to use
WriteOutput. You can, of course, invoke functions written in CFML from
CFSCRIPT.
Dave Watts, CTO, Fig Leaf Software
http://www.figlea
nope,
I need to populate a function call based on another query
Brad Wood wrote:
> Are you wishing for your function to return the generated content as a
> return variable as opposed to directly outputting to the page buffer?
>
> If so, you can concatenate strings together and then return th
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 somet
Are you wishing for your function to return the generated content as a
return variable as opposed to directly outputting to the page buffer?
If so, you can concatenate strings together and then return the string at
the end of the function.
I'm not really sure where you are going with this thoug
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
I'll update it asap.
On Mon, Mar 24, 2008 at 11:35 AM, Charlie Griefer <[EMAIL PROTECTED]>
wrote:
> On Mon, Mar 24, 2008 at 8:01 AM, Scott Stewart
> <[EMAIL PROTECTED]> wrote:
> > Hey all,
> > Is there a comprehensive CFScript compendium anywhere?
>
> it's a tad old, but it still works (the nota
>> not suggesting this is a "best practice" by any means... was just me
>> trying to jump into cfscript with both feet. calendar sample and code
>> are at http://charlie.griefer.com/code/cf/cfscript_calendar.cfm. this
Huh, that looks a lot like PHP.
Charlie points out reason # 432 why I use CF.
On Mon, Mar 24, 2008 at 8:01 AM, Scott Stewart
<[EMAIL PROTECTED]> wrote:
> Hey all,
> Is there a comprehensive CFScript compendium anywhere?
it's a tad old, but it still works (the notable exception being the
new operators in CF8 not being there)...
http://www.houseoffusion.com/tutorials/cfscrip
On Mon, Mar 24, 2008 at 11:01 AM, Scott Stewart <[EMAIL PROTECTED]>
wrote:
> Hey all,
>
>
>
> Is there a comprehensive CFScript compendium anywhere?
>
>
Only one I know of is the Cheat Sheet.
http://www.petefreitag.com/cheatsheets/coldfusion/cfscript/
Casey
~
I am trying to follow what you are wanting to accomplish with this.
You are setting htmlcontent to the string value 'htmlcontent' plus the
current 'count' value.
Then you are sending the htmlcontent1 variable (which doesn't appear to
exist) to the ToScript function? I think htmlcontent1 is part o
A side note; there's no need to maintain that 'COUNT' variable as CF does
this for you with the currentRow property of the cfquery object, so:
Dominic
On 28/01/2008, Dominic Watson <[EMAIL PROTECTED]> wrote:
>
> A random guess, but try removing all the cfoutput tags and wrap the whole
A random guess, but try removing all the cfoutput tags and wrap the whole
lot in one cfoutput tag. Perhaps it is a whitespace thing...(?)
Dominic
> I've got most of this working. I'm just having a hard time getting the cf
> variables
> to parse out when naming the javscript function. Everythin
1 - 100 of 417 matches
Mail list logo