You might also want to consider the shorthand: correctanswers++ rather
than correctanswers = correctanswers+1.
On Thu, Mar 3, 2011 at 11:11 PM, Azadi Saryev azadi.sar...@gmail.comwrote:
Something like this:
a) at the top of your action page add:
cfset ttlquestions = 5!--- total number of
Assuming, of course, that John is on CF8+.
Scott
On Fri, Mar 4, 2011 at 4:22 AM, Michael Grant mgr...@modus.bz wrote:
You might also want to consider the shorthand: correctanswers++ rather
than correctanswers = correctanswers+1.
--
-
Scott Brady
oops, typo in the round() function... it should be:
#round( (correctanswers/ttlquestions)*100 )
[i had a comma in there which should not be there...]
On 04/03/2011 12:11 , Azadi Saryev wrote:
Azadi, many, many thanks. Works like a charm. :-)
I have a page with a stored procedure on it. After the stored proc runs, I
have a database call to set some variables. The variables aren't getting set
in the database occasionally. It also seems that the stored procedure, before
the variables are set, times out at occasionally. If a
I was just completing a short survey from
Application Development Trends for their
their 2011 Reader Survey.
I got to this question...
Which of the following languages/tools are currently
in use in your enterprise? (Check all that apply.)
...and was very surprised to see everything under the
I was talking to vendor a while back and he made the comment, Wow!
ColdFusion? Isn't that old?
Click...
-Original Message-
From: Rick Faircloth [mailto:r...@whitestonemedia.com]
Sent: Friday, March 04, 2011 8:39 AM
To: cf-talk
Subject: I wonder what this says, if anything, about
I was just completing a short survey from
Application Development Trends for their
their 2011 Reader Survey.
I got to this question...
Which of the following languages/tools are currently
in use in your enterprise? (Check all that apply.)
...and was very surprised to see everything
Hello all --
I have a form that contains checkboxes which sends multiple record numbers to
an action form for processing. For example, it would send:
formfield1=ABC
formfield2=1,2,3,4,5,6,7
In the database I want to update the formfield1 column to ABC wherever the
formfield2 column value is
update tablename
set formfield1 = cfqueryparam value=#form.formfield1#
cfsqltype=cf_sql_varchar
where formfield2 in cfqueryparam value=#form.formfield2#
cfsqltype=cf_sql_integer list=true
On Fri, Mar 4, 2011 at 11:01 AM, Scott Williams
myscottwilli...@yahoo.comwrote:
Hello all --
I have a
Are you doing the update via a SQL statement or stored proc?
On Fri, Mar 4, 2011 at 11:01 AM, Scott Williams
myscottwilli...@yahoo.comwrote:
Hello all --
I have a form that contains checkboxes which sends multiple record numbers
to
an action form for processing. For example, it would
Never mind -- I figured it out. This works:
cfquery name=query2 datasource=#dsn#
UPDATE aTable
SET ColumnA = '#form.var1#'
WHERE ColumnB IN (#form.var2#)
/cfquery
I had tried using IN in my update query except that I didn't include the
parentheses.
Scott
That is exactly what I was going to suggest. Good job.
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
Be sure to add cfqueryparam / to your query. If you want to know why,
post a link to your live site, and we can show you. :-)
~|
Order the Adobe Coldfusion Anthology now!
lol
On 3/4/2011 12:26 PM, Matt Quackenbush wrote:
Be sure to addcfqueryparam / to your query. If you want to know why,
post a link to your live site, and we can show you. :-)
~|
Order the Adobe Coldfusion Anthology
Hello,
I have a CFC which does some string parsing to find and replace wildcards.
Within the CFC I am calling a method over and over and passing in the entire
string as an argument. The method does some magic and returns a result.
The string could be a large (like a 2 page document)
Hello again everyone,
I'd be curious to hear about your experiences with www.KickAssVPS.com if
any of you have a Virtual Private Server with them. I checked them out
several times and like the fact that they offer ColdFusion 9 and use
Paralells Helm Control Panel for site management and
My recommendation would be to initialize the CFC with the string as an
initial argument, then call the different iterative methods without sending
the string over and over: just modify the variable within the CFC after
the init.
Ex:
cfcomponent displayName=stringModder
cfset
SET ColumnA = '#form.var1#'
WHERE ColumnB IN (#form.var2#)
How ever, make sure you check for form.var2 not being empty, because ColumnB IN
() causes an error.
~|
Order the Adobe Coldfusion Anthology now!
I should have mentioned the CFC is stored in the application scope, so I
can't do that...
Brook
-Original Message-
From: Jason Fisher [mailto:ja...@wanax.com]
Sent: March-04-11 9:56 AM
To: cf-talk
Subject: re: CFC arguments, passing large strings
My recommendation would be to
Oh, well, if it's a singleton, then you're going to end up taking up those
whacking great chunks of server memory on every request cycle. I would
strongly consider moving it out of application scope for that very reason,
but I certainly don't know the entire app structure so that's just a
Beyond this they seem to be a good company although I'm a little
squeemish about there not being telephone tech support available. That's the
impression I get from viewing their Web Site. Any feedback will be very much
appreciated.
Peter Donahue
My experience with them sucked. My hosting
I've had a VPS with them for about 2 years and it has been awesome for
the most part. A couple of small outages and DDOS attacks but nothing
that they weren't able to address in a couple of hours. Every now and
then the CF service wouldn't start back up after an update or
something so I just
But if I wrap it in structure, then it would be passed by reference.
Wouldn't this alleviate the memory usage issue?
Brook
-Original Message-
From: Jason Fisher [mailto:ja...@wanax.com]
Sent: March-04-11 10:24 AM
To: cf-talk
Subject: RE: CFC arguments, passing large strings
Oh, well,
+1 for KA VPS
I had a VPS with them for a couple of years with just a couple of relatively
minor hiccups. Someone DDoS'ed their network one time and took them off line
along with my VPS. Support was good (excellent for the price) and prompt.
Based entirely on my experience I would definitely
Yes, that would work. I suppose it breaks encapsulation, since the scope
of the struct is 'known' to the CFC, but it should accomplish what you're
after. If you do that, you technically wouldn't even need return values
from the CFC, since changes to made to the method argument, would be made
I'd have to agree with John and Gerald: overall, my experience with KAVPS
has been generally quite good.
There have been occasional minor outages, and a few other quirks - things
that will tend to happen with a small hosting service. But they're very
flexible, Brian Emerson is very helpful, and
I 2nd the recommendation for viviotech.net!
On 3/4/2011 2:42 PM, Gerald Guido wrote:
+1 for KA VPS
I had a VPS with them for a couple of years with just a couple of relatively
minor hiccups. Someone DDoS'ed their network one time and took them off line
along with my VPS. Support was good
+1,000,000,000,000,000,000,000 x 1,000,000,000,000,000,000,000 for
http://viviotech.net/. You will *never* find a better company. And it
starts at the very top!
~|
Order the Adobe Coldfusion Anthology now!
Yes, my experience, since July 2008 has been very good.
Perhaps 3 outages in over 2.5 years. Twice it was very
short periods, one from an outside attack and another
upgrades they were doing that affected the VPS.
A third time, my server was just using too much memory
and needed to be refreshed.
When using ImageDrawText in CF8 on a Windows 2003 server can you create a
text image with any font you have installed on the server?
Also is there any way to use Google's font api within CF8's image tags?
Terry
~|
I've been with them for a year or so now. Wonderful. MUCH better then
hostingatoz.com and worth the money.
The staff are knowledgeable and the few times I actually did call the
office, they didn't have any attitude at all that I was calling them.
Heck, as far as support goes, I emailed them at
I have had great service from KickAssVps
As a newbie to vps it has been a challenge setting up/managing the vps but the
support has been good
Rob
Robert J. Voyle, Psy.D.
Director, Clergy Leadership Institute
For Coaching and Training in Appreciative Inquiry
Author: Restoring Hope: Appreciative
32 matches
Mail list logo