ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old March 29th, 2005, 11:30 AM
mk_senthil mk_senthil is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 45 mk_senthil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 h 9 m 49 sec
Reputation Power: 4
passing hidden values alomg with the selected value in list box

Hi All

I need to pass few hidden values for the selected value from a list box.

Whn try to pass the value I'm able to see the first value in the record, it is not looping through.Any help would be appreciated.
\
See below the code which I am trying with.
--------------------------------------------------------

<cfset counter = 1>
&nbsp;&nbsp;&nbsp;<select name="quickref_field#counter#" style="width:250px;">
<cfoutput query="get_quickref">
<option value="#get_quickref.web_cont_url_txt#">&nbsp;#get_quickref.web_cont_nm#</option>
</cfoutput>
</select>
<cfoutput>
<input type="hidden" name="v_webconturltxt#counter#" value="#get_quickref.web_cont_url_txt#">
<input type="hidden" name="v_webcontnm#counter#" value="#get_quickref.web_cont_nm#">
<input type="hidden" name="v_webcontid#counter#" value="#get_quickref.web_cont_id#">
<input type="hidden" name="v_webcontseqnbr#counter#" value="#get_quickref.web_cont_seq_nbr#">
<input type="button" class="formbutton1" name="Edit" value="Edit" onClick="javascript:formedit();">
</cfoutput>
<cfset counter=counter+1>
--------------------------------------------------------

Thanks.
-s

Reply With Quote
  #2  
Old March 29th, 2005, 01:17 PM
bocmaxima's Avatar
bocmaxima bocmaxima is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2004
Location: Tucson, Sonora
Posts: 1,322 bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 17 h 46 m 5 sec
Reputation Power: 22
Send a message via AIM to bocmaxima
Your counter increment is not in a loop, so it's not going to work. You'll just get one of each.

Try this:
Code:
<cfoutput>
<cfloop index="counter" start="1" end="#yourIndex#">
&nbsp;&nbsp;&nbsp;<select name="quickref_field#counter#" style="width:250px;">
<cfloop query="get_quickref">
<option value="#get_quickref.web_cont_url_txt#">&nbsp;#get_quickref.web_cont_nm#</option>
</cfloop>
</select>
<input type="hidden" name="v_webconturltxt#counter#" value="#get_quickref.web_cont_url_txt#">
<input type="hidden" name="v_webcontnm#counter#" value="#get_quickref.web_cont_nm#">
<input type="hidden" name="v_webcontid#counter#" value="#get_quickref.web_cont_id#">
<input type="hidden" name="v_webcontseqnbr#counter#" value="#get_quickref.web_cont_seq_nbr#">
<input type="button" class="formbutton1" name="Edit" value="Edit" onClick="javascript:formedit();">
</cfloop>
</cfoutput>

Reply With Quote
  #3  
Old March 29th, 2005, 03:26 PM
mk_senthil mk_senthil is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 45 mk_senthil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 h 9 m 49 sec
Reputation Power: 4
No It doesn't work either.I'm getting two listboxes with the same value.....

and getting the first value as before..

Thanks
-s

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > passing hidden values alomg with the selected value in list box


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway