On Thursday 10 August 2006 22:13, Russ wrote:
Other then it's probably nicer to write it like this:
input type=hidden name=price
value=#trim(iif(getDollDetails.price,getDollDetails.price,getDollDetails.s
r p))#
I don't think anything involving iif and/or trim is nicer than a perfectly
good
Tom Chiverton wrote:
I don't think anything involving iif and/or trim is nicer than a perfectly
good if/else.
I do
:p
~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion
]
Sent: Friday, August 11, 2006 9:14 AM
To: CF-Talk
Subject: Re: CFIF inside a Form
On Thursday 10 August 2006 22:13, Russ wrote:
Other then it's probably nicer to write it like this:
input type=hidden name=price
value=#trim(iif(getDollDetails.price,getDollDetails.price,getDollDetails
PROTECTED]
Sent: Friday, August 11, 2006 9:14 AM
To: CF-Talk
Subject: Re: CFIF inside a Form
On Thursday 10 August 2006 22:13, Russ wrote:
Other then it's probably nicer to write it like this:
input type=hidden name=price
value=#trim(iif(getDollDetails.price,getDollDetails.price,getDollDetail
s
Which is more readable is quite subjective, you probably find this more
readable:
select
option value=#value#cfif value eq url.value
selected/cfif#text#/option
/select
And I this:
select
option value=#value##iif( value eq url.value, de( ' selected' ),
de( '' ))##text#/option
/select
:[EMAIL PROTECTED]
Sent: Friday, August 11, 2006 10:28 AM
To: CF-Talk
Subject: Re: CFIF inside a Form
Which is more readable is quite subjective, you probably find this more
readable:
select
option value=#value#cfif value eq url.value
selected/cfif#text#/option
/select
And I
=
/cfif
option value=#value# #selected#
#text#
/option
/select
-Original Message-
From: Mingo Hagen [mailto:[EMAIL PROTECTED]
Sent: Friday, August 11, 2006 10:28 AM
To: CF-Talk
Subject: Re: CFIF inside a Form
Which is more readable is quite
freakishly deviant
An apt description if ever there was one for me :)
-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Friday, August 11, 2006 10:43 AM
To: CF-Talk
Subject: Re: CFIF inside a Form
well God man, sure there's no 'right' or 'wrong' way
On Friday 11 August 2006 15:27, Mingo Hagen wrote:
Which is more readable is quite subjective, you probably find this more
readable:
Indeed.
select
option value=#value#cfif value eq url.value
selected/cfif#text#/option
/select
Well, I'd lay out nicer:
select
option value=#value#
aolMe too./aol
-Original Message-
From: loathe
Sent: Friday, August 11, 2006 10:39 AM
To: CF-Talk
Subject: RE: CFIF inside a Form
I prefer:
select
cfif value eq url.value
cfset selected = selected
cfelse
cfset selected =
/cfif
Tom Chiverton wrote:
Well, I'd lay out nicer:
select
option value=#value#
cfif value eq url.value
selected
/cfif
#text#/option
/select
How is whitespace managed if you lay it out like that, I'm a bit
obsessive compulsive about that ;)
:points at CFEclipse
-
From: Mingo Hagen [mailto:[EMAIL PROTECTED]
Sent: Friday, August 11, 2006 11:16 AM
To: CF-Talk
Subject: Re: CFIF inside a Form
Tom Chiverton wrote:
Well, I'd lay out nicer:
~|
Introducing the Fusion Authority Quarterly
You have a point, so my best of both worlds solution is the #iif()#
construction, white space in order, readable, and not so complex it
can't be figured it out 5 years from now.
Mingo.
loathe wrote:
I don't like implicit code. I want it to be very easy to understand. I know
two years from
On Friday 11 August 2006 16:16, Mingo Hagen wrote:
How is whitespace managed if you lay it out like that,
It isn't.
I'm a bit
obsessive compulsive about that ;)
I only worry about it if it becomes a problem (though I do wish CFCs would
default to output=false)
Yeah, yeah, I know, not an
Is it possible there's a null value in that column? That would result in
an empty string for CF and gt would be an invalid operator.
cfif val(getDollDetails.price) gt 0 might be better.
-Original Message-
From: Donna French [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 10, 2006 5:02
Other then it's probably nicer to write it like this:
input type=hidden name=price
value=#trim(iif(getDollDetails.price,getDollDetails.price,getDollDetails.sr
p))#
I don't see anything wrong with it. Where does getDollDetails get created?
You said it's a query?
CF debugger sucks sometimes
Not likely it's null but I went ahead tried it using VAL still get the same
error.
Any other suggestions?
This site is using CF5 if that helps - database is SQL 2000
Thanks,
Donna
Is it possible there's a null value in that column? That would result in
an empty string for CF and gt would
It's not quite 'time' for me to go home - but it's TIME for me to go...
You know one of the great things about CF is it tells you exactly which line to
look atDUH
wrong damn line
thanks for the help - it's fixed now and I am going home!!!
LOL
~ Donna
Other then it's probably nicer
Not likely it's null but I went ahead tried it using VAL still get the
same error.
Any other suggestions?
This site is using CF5 if that helps - database is SQL 2000
Thanks,
Donna
Yep...1st thing you do when you get an error like that is CFDUMP all values
involved and go from there.
It's not quite 'time' for me to go home - but it's TIME for me to go...
You know one of the great things about CF is it tells you exactly which line
to look atDUH
wrong damn line
thanks for the help - it's fixed now and I am going home!!!
LOL
~ Donna
Ouch...don't ya just hate
20 matches
Mail list logo