On Sat, May 29, 2010 at 4:50 AM, Phillip Perry wrote:
> Thank you. I that helps alot. Totally missed the selected=selected
> error ><. Can I use the same code for the radio options?
checked="checked" (same for checkbox and radio button)
--
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, I
"Oh and as a matter of preference (and for some code checking tools) I hate
it when tags are embedded in other tags."
Write a UDF that you can embed in the tag. You'll never have to worry about
embedding again.
Something like isChecked(chkValue,qryValue) which would return an empty
string or "c
A little different for radios: use checked="checked", but, yes,
otherwise the same.
checked="checked" />#thisText#
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz
Thank you. I that helps alot. Totally missed the selected=selected
error ><. Can I use the same code for the radio options?
Phil
On Thu, May 27, 2010 at 4:22 PM, Yuliang Ruan wrote:
>
> btw, it should be just selected not selected="selected"Than
>
> "clothes">SELECTED>Clothes
>
> if your list
> How do people feel about this:
>
> is "personal" ? 'checked="checked"' : '' # />
I can't speak for anyone else, but I think the ternary operator is one
slippery step down a dangerous slope. At the very bottom of that slope
lies Perl.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
On Thu, May 27, 2010 at 1:37 PM, DURETTE, STEVEN J (ATTASIAIT)
wrote:
>
> checked="checked" />
>
>
> Personal
How do people feel about this:
--
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/
"If
PM
To: cf-talk
Subject: Re: How to make a select option tag selected in CF?
oh for radiobuttons it's
CHECKED>Personal
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology
> btw, it should be just selected not selected="selected"
That is no longer necessarily the case. It will depend on the doctype.
For XHTML 1.0, it should be:
...
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf Software is a Veteran-Owned Small B
best to
use selected="selected"
Steve
-Original Message-
From: Yuliang Ruan [mailto:yuliangr...@hotmail.com]
Sent: Thursday, May 27, 2010 4:23 PM
To: cf-talk
Subject: Re: How to make a select option tag selected in CF?
btw, it should be just selected not selected="selected&q
oh for radiobuttons it's
CHECKED>Personal
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/g
btw, it should be just selected not selected="selected"
SELECTED>Clothes
if your list of options is long and u need it to be hardcoded, u should put it
into a array of struct. i.e.
SELECTED>#thisChoice.text#
of course even better would be these in a lookup db table
~~~
on page load, to default to the previously saved data...
selected="selected">Choose
>From Below
and
checked="checked" />Not Applicable
if, however, you are having a problem where this isn't working for you, then
you probably are experiencing 'persistent form choices'.
This would not be a proble
Hi,
I am making a form and I would like to have the user review the form
answers before it gets sent to the processing template. I know how to
populate all the other things but the drop down list and the radio
buttons are confusing me. It's been a while since I used CF for this
so I forget. Below
13 matches
Mail list logo