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!
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:
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
://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
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
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
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
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
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 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/
Hey CFers
This might be a silly question: how are you all formatting your cfcsript
based cfcs? 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
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
No comments driving behavior! :-)
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
/* 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!
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
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
[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
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
, 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
-
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
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
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
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
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
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
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
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
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
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
...@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
- 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
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
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
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
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
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
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
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?
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.
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
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
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
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
[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
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
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
[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
]/
/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
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
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 =
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
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.
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
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
,
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
, 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
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
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
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
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
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
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?
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
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
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
@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
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
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
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
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
:[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
: 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
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
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
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
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
@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
: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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
: 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
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
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
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
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
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
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
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
101 - 200 of 1308 matches
Mail list logo