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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of VIKASH KUMAR
Sent: Tuesday, July 18, 2006 10:52 PM
To: [email protected]
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.
Send FREE SMS from New Yahoo! Messenger to Mobile: Download NOW!

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to