ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 8th, 2004, 07:49 PM
ragga ragga is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 2 ragga User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
list box selection

i
I have a form with list, select and radio buttons eack has onclick event to post itself and populate from the database depend on radio button selected.
When i select multiple selection then onclick a radio button the form is posting itself then do more selections on other fields. At the mean time I need the one's selected in multiple list box need to be selected.
This is the code I tried. it is working only I select one,but if I select multiple it is not working How I can do this.


<select name="lis_anaAuctionLoc" multiple class="small" size="5">
<cfoutput>
<cfloop query="getAuctionLocationQuery">
<cfif isDefined('form.typeReport') and (form.typeReport eq "National Total Sales Performance" or form.typeReport eq "Regional Sales Performance")>
<option value="#trim(getAuctionLocationQuery.gsaulc)#" selected>#trim(getAuctionLocationQuery.gsaulc)#</option>
<cfelse>
<option value="#trim(getAuctionLocationQuery.gsaulc)#" <cfif isDefined('form.lis_anaAuctionLoc')> <cfif form.lis_anaAuctionLoc eq "#trim(getAuctionLocationQuery.gsaulc)#">selected</cfif></cfif>>#trim(getAuctionLocationQuery.gsaulc)#</option>
</cfif>
</cfloop>
</cfoutput> </select>

Reply With Quote
  #2  
Old January 12th, 2004, 08:59 AM
kiteless kiteless is offline
Moderator
Dev Shed God (5000 - 5499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 5,091 kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 2 h 53 m 27 sec
Reputation Power: 966
Ragga, I can't tell from your description or your code what you are trying to do. The user selects one or more items from the select box and then clicks a radio button. The radio button posts the select box data and the radio button choice to the database, and then the page redisplays. And you want to have the select box items and the radio button that the user had chosen be selected when the page reloads? Is that right?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > list box selection

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap