Hi Bruce,
I don't see any issue with CFIF. I have used your code to test it and it
works find on IE and Firefox both. Check out the below code by executing
in browser.
Thanks & Regards,
Jayesh Viradiya
Adobe CF Team
<cfparam name="GetScheduleInfoRet.Shift" default="">
<form name="frm">
<input type="text" name="input" value="">
<input type="submit" name="enter L / B in textbox and press this button
and see the select box chage accordingly" value="enter L / B in textbox
and press this button and see the select box chage accordingly"><BR>
<cfset GetScheduleInfoRet.Shift = "#input#">
<!---Here goes your code , BRUCE---->
<select name="Shift">
<cfif (GetScheduleInfoRet.Shift) IS "B">
<option value="B"
selected="selected">Breakfast</option>
<option value="L">Lunch</option>
<cfelseif (GetScheduleInfoRet.Shift) IS "L">
<option value="B">Breakfast</option>
<option value="L"
selected="selected">Lunch</option>
<cfelse>
<option value="B">Breakfast</option>
<option value="L">Lunch</option>
</cfif>
</select>
</form>
-----Original Message-----
From: Bruce Sorge [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 21, 2007 10:13 PM
To: CF-Talk
Subject: CFIF Pissing me off
Morning all.
I have this select list:
<select name="Shift">
<cfif (GetScheduleInfoRet.Shift) IS "B">
<option value="B"
selected="selected">Breakfast</option>
<option value="L">Lunch</option>
<cfelseif (GetScheduleInfoRet.Shift) IS "L">
<option value="B">Breakfast</option>
<option value="L"
selected="selected">Lunch</option>
<cfelse>
<option value="B">Breakfast</option>
<option value="L">Lunch</option>
</cfif>
</select>
So when I open the form, the elseif portion kicks in because the item in
the
database is L (and I added identifying letters at the end of each
option).
However, breakfast is the option that I am seeing selected, not Lunch.
Not
sure why this is happening. Any ideas? This is a very basic deal that I
have
done with success in the past but today it does not want to cooperate.
Using CF8, Server 2003.
Bruce
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:286795
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4