Jeff,

I've almost got it but not quite. Everything looks like it SHOULD select the 
categories, but it won't. 

I dump the value list:
4,2

Here's my select:
<cfselect name="prodcat" label="Select category(ies)" required="yes" 
multiple="yes" size="5">
 <cfoutput query="listprodcategories"> 
 <option value="#catID#" <cfif ListFind(selectedCats, catID) EQ 
true>SELECTED</cfif>>#catname#</option> 
 </cfoutput>
</cfselect>

On a product with one category, it selects it correctly. The problem is when I 
get to TWO categories. It wouldn't select any. I added the EQ true and it 
selects one of the categories. But it's like it won't loop over the second and 
select that one as well. 

here's the generated html so you can see the valuelist does indeed match two 
items:

<select name="prodcat" multiple="multiple" size="5" >
 
  <option value="4" SELECTED>Shirts</option> 
            
  <option value="2">Shoes</option> 
            
  <option value="5">Shorts</option> 
</select> 

It should match 4 and 2 but it won't. Any idea on this? I'll keep messin round 
with it. 

Thanks!
Will


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221132
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to