Ok I've spent that last 2 hours tearing my hair out trying to figure out
what was wrong in my code. When I come to the realization to test it in IE
and bam it works. I have a dynamically generated Select drop down that
marked the option tag selected that is the value I want. Firefox is ignoring
the selected attribute but IE picks it up just fine. Has anyone else run
into this problem before?

 

<cfoutput>

<cfset xID = 3>

<select name="groupID">

<cfloop query="myquery_1">

<option value="#ID#" <cfif ID EQ
ID>selected="true"</cfif>>#Description#</option>

</cfloop>

</select>

</cfoutput>

 

BTW I've tried it several ways:

<option value="#ID#" <cfif ID EQ
ID>selected="selected"</cfif>>#Description#</option>

<option value="#ID#" <cfif ID EQ
ID>selected="true"</cfif>>#Description#</option>

<option value="#ID#" <cfif ID EQ ID>selected</cfif>>#Description#</option>

 

None of the above worked in FireFox but all of them worked in IE. I've
googled my brains out but every were I've seen people post about this, there
is never a solution.

 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
CF 8 – Scorpio beta now available, 
easily build great internet experiences – Try it now on Labs
http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282309
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to