[Wtr-general] selecting multiple values from on list and passing itto other list

Cain, Mark Mark_Cain at RL.gov
Wed Jul 19 10:01:16 EDT 2006


You could do something like this:

 

  dbList = $ie.select_list( :name, 'assigned').getAllContents

      

  for dbl in dbList

    $ie.selectBox( :name, 'assigned').select("#{dbl}")

  end

 

Hope this helps,

 

--Mark

 

________________________________

From: wtr-general-bounces at rubyforge.org
[mailto:wtr-general-bounces at rubyforge.org] On Behalf Of VIKASH KUMAR
Sent: Tuesday, July 18, 2006 10:52 PM
To: wtr-general at rubyforge.org
Subject: [Wtr-general] selecting multiple values from on list and
passing itto other list

 

Sir,

 

I am facing a problem in selecting multiple values from a list and
passing it over to another list box with any button click, it should do
it automatically.

 

for example the list is as given below:

 

<select id="assigned" name="assigned" size="8" multiple="multiple"
class="addList" alloptions="availableGroups" alt="permissions">
      
       <option value="viewUserSecurity">viewUserSecurity</option>      
       <option value="viewUser">viewUser</option>      
       <option
value="viewTransactionInbox">viewTransactionInbox</option>      
       <option value="viewTradeCancel">viewTradeCancel</option>

</select>

 

 

and the other list as :

 

<select id="availableSystem" name="availableSystem" size="8"
multiple="multiple">
      


</select>

 

 

Please send me a solution for selecting multiple values from list
"assigned" and passing it over to list "availableSystem", without any
button click event.

 

Thanks in advance.

 

Vikash Kumar

  

________________________________

Find out what India is talking about on Yahoo! Answers India.
<http://us.rd.yahoo.com/mail/in/mailanswersshare/*http:/in.answers.yahoo
.com/> 
Send FREE SMS from New Yahoo! Messenger to Mobile: Download NOW!
<http://us.rd.yahoo.com/mail/in/mailmessenger/*http:/in.beta.messenger.y
ahoo.com/> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060719/312b410f/attachment.html 


More information about the Wtr-general mailing list