This is a multi-part message in MIME format.
------=_NextPart_000_0219_01C01743.51708470
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Re: CFSELECT, selected= doesnt work?! Am I going crazy?Then, you will have
to manually determine which item should be selected. The "selected"
attribute of cfselect only works when combined with a query.
DC
-----Original Message-----
From: Peter Theobald [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 05, 2000 14:01
To: [EMAIL PROTECTED]
Subject: Re: CFSELECT, selected= doesnt work?! Am I going crazy?
Doesn't help me because I am not using a query as my option list is not in
the database.
At 09:18 PM 9/2/00 -0400, Bud wrote:
>On 9/2/00, Peter Theobald penned:
>>[cfform action="#CGI.SCRIPT_NAME#" method="post">
>> [cfselect name="letter" selected="B">
>> [option value="A">Apple
>> [option value="B">Bear
>> [option value="C">Car
>> [/cfselect>
>> [input type=submit>
>>[/cfform>
>
>The options you put in there will not be selected. They will only be
>in addition to the options output by the query, which is noticeably
>absent from your cfselect tag.
>
>So, you run a query to get all the states "GetStates" that returns an
>ID for the state and the state's name. Then you run a query on a user
>"GetUser" to get his state ID on an update page.
>
>cfselect
>name="state_id"
>query="GetStates"
>selected="#GetUser.state_id#"
>value="state_id"
>display="state"
>
>If the users state if Florida and the state ID is FL, this will
>return all the states, with the users looking like:
>
>[select name="state_id">
>[option value="FL" selected>Florida
>
>You would want to add an option manually maybe on the signup page
>where you could put:
>
>[option value="">Select A State
>
>
>
>--
>
>Bud Schneehagen - Tropical Web Creations
>
>_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
>ColdFusion Solutions / eCommerce Development
>[EMAIL PROTECTED]
>http://www.twcreations.com/
>954.721.3452
>---------------------------------------------------------------------------
---
>Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
>To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
--------------------------------------------------------------------------
-
Peter Theobald, Chief Technology Officer
LiquidStreaming http://www.liquidstreaming.com
[EMAIL PROTECTED]
Phone 1.212.545.1232 Fax 1.212.679.8032
--------------------------------------------------------------------------
----
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------=_NextPart_000_0219_01C01743.51708470
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Re: CFSELECT, selected=3D doesnt work?! Am I going =
crazy?</TITLE>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3018.900" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D719471114-05092000>Then,=20
you will have to manually determine which item should be selected. The=20
"selected" attribute of cfselect only works when combined with a=20
query.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D719471114-05092000></SPAN></FONT> </DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D719471114-05092000>DC</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D719471114-05092000></SPAN></FONT> </DIV>
<BLOCKQUOTE style=3D"MARGIN-RIGHT: 0px">
<DIV align=3Dleft class=3DOutlookMessageHeader dir=3Dltr><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B> Peter Theobald=20
[mailto:[EMAIL PROTECTED]]<BR><B>Sent:</B> Tuesday, September =
05, 2000=20
14:01<BR><B>To:</B> [EMAIL PROTECTED]<BR><B>Subject:</B> Re: =
CFSELECT,=20
selected=3D doesnt work?! Am I going crazy?<BR><BR></DIV></FONT>
<P><FONT size=3D2>Doesn't help me because I am not using a query as my =
option=20
list is not in the database.</FONT> </P>
<P><FONT size=3D2>At 09:18 PM 9/2/00 -0400, Bud wrote:</FONT> =
<BR><FONT=20
size=3D2>>On 9/2/00, Peter Theobald penned:</FONT> <BR><FONT=20
size=3D2>>>[cfform action=3D"#CGI.SCRIPT_NAME#" =
method=3D"post"></FONT>=20
<BR><FONT size=3D2>>> [cfselect name=3D"letter"=20
selected=3D"B"></FONT> <BR><FONT =
size=3D2>>> =20
[option value=3D"A">Apple</FONT> <BR><FONT=20
size=3D2>>> [option =
value=3D"B">Bear</FONT>=20
<BR><FONT size=3D2>>> [option=20
value=3D"C">Car</FONT> <BR><FONT size=3D2>>> =20
[/cfselect></FONT> <BR><FONT size=3D2>>> [input=20
type=3Dsubmit></FONT> <BR><FONT =
size=3D2>>>[/cfform></FONT> <BR><FONT=20
size=3D2>></FONT> <BR><FONT size=3D2>>The options you put in =
there will not=20
be selected. They will only be </FONT><BR><FONT size=3D2>>in =
addition to the=20
options output by the query, which is noticeably </FONT><BR><FONT=20
size=3D2>>absent from your cfselect tag.</FONT> <BR><FONT =
size=3D2>></FONT>=20
<BR><FONT size=3D2>>So, you run a query to get all the states =
"GetStates"=20
that returns an </FONT><BR><FONT size=3D2>>ID for the state and the =
state's=20
name. Then you run a query on a user </FONT><BR><FONT =
size=3D2>>"GetUser" to=20
get his state ID on an update page.</FONT> <BR><FONT =
size=3D2>></FONT>=20
<BR><FONT size=3D2>>cfselect</FONT> <BR><FONT=20
size=3D2>>name=3D"state_id"</FONT> <BR><FONT=20
size=3D2>>query=3D"GetStates"</FONT> <BR><FONT=20
size=3D2>>selected=3D"#GetUser.state_id#"</FONT> <BR><FONT=20
size=3D2>>value=3D"state_id"</FONT> <BR><FONT =
size=3D2>>display=3D"state"</FONT>=20
<BR><FONT size=3D2>></FONT> <BR><FONT size=3D2>>If the users =
state if=20
Florida and the state ID is FL, this will </FONT><BR><FONT =
size=3D2>>return=20
all the states, with the users looking like:</FONT> <BR><FONT=20
size=3D2>></FONT> <BR><FONT size=3D2>>[select =
name=3D"state_id"></FONT>=20
<BR><FONT size=3D2>>[option value=3D"FL" selected>Florida</FONT> =
<BR><FONT=20
size=3D2>></FONT> <BR><FONT size=3D2>>You would want to add an =
option=20
manually maybe on the signup page </FONT><BR><FONT size=3D2>>where =
you could=20
put:</FONT> <BR><FONT size=3D2>></FONT> <BR><FONT =
size=3D2>>[option=20
value=3D"">Select A State</FONT> <BR><FONT size=3D2>></FONT> =
<BR><FONT=20
size=3D2>></FONT> <BR><FONT size=3D2>></FONT> <BR><FONT =
size=3D2>>--=20
</FONT><BR><FONT size=3D2>></FONT> <BR><FONT size=3D2>>Bud =
Schneehagen -=20
Tropical Web Creations</FONT> <BR><FONT size=3D2>></FONT> <BR><FONT =
size=3D2>>_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/</FONT> <BR><FONT=20
size=3D2>>ColdFusion Solutions / eCommerce Development</FONT> =
<BR><FONT=20
size=3D2>>[EMAIL PROTECTED]</FONT> <BR><FONT size=3D2>><A=20
href=3D"http://www.twcreations.com/"=20
target=3D_blank>http://www.twcreations.com/</A></FONT> <BR><FONT=20
size=3D2>>954.721.3452</FONT> <BR><FONT=20
=
size=3D2>>------------------------------------------------------------=
------------------</FONT>=20
<BR><FONT size=3D2>>Archives: <A=20
href=3D"http://www.mail-archive.com/cf-talk@houseoffusion.com/"=20
=
target=3D_blank>http://www.mail-archive.com/cf-talk@houseoffusion.com/</A=
></FONT>=20
<BR><FONT size=3D2>>To Unsubscribe visit <A=20
=
href=3D"http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&body=3D=
lists/cf_talk"=20
=
target=3D_blank>http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&am=
p;body=3Dlists/cf_talk</A>=20
or send a message to [EMAIL PROTECTED] with =
'unsubscribe' in=20
the body. </FONT></P><BR>
<P><FONT=20
=
size=3D2>----------------------------------------------------------------=
-----------</FONT>=20
<BR><FONT size=3D2>Peter Theobald, Chief Technology Officer</FONT> =
<BR><FONT=20
size=3D2>LiquidStreaming <A href=3D"http://www.liquidstreaming.com"=20
target=3D_blank>http://www.liquidstreaming.com</A></FONT> <BR><FONT=20
size=3D2>[EMAIL PROTECTED]</FONT> <BR><FONT size=3D2>Phone =
1.212.545.1232=20
Fax 1.212.679.8032</FONT> </P>
<P><FONT=20
=
size=3D2>----------------------------------------------------------------=
--------------</FONT>=20
<BR><FONT size=3D2>Archives: <A=20
href=3D"http://www.mail-archive.com/cf-talk@houseoffusion.com/"=20
=
target=3D_blank>http://www.mail-archive.com/cf-talk@houseoffusion.com/</A=
></FONT>=20
<BR><FONT size=3D2>To Unsubscribe visit <A=20
=
href=3D"http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&body=3D=
lists/cf_talk"=20
=
target=3D_blank>http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&am=
p;body=3Dlists/cf_talk</A>=20
or send a message to [EMAIL PROTECTED] with =
'unsubscribe' in=20
the body.</FONT></P></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0219_01C01743.51708470--
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.