Hi all. this is my problem:<br>* I want to be able to drag and drop items boths sides of two <select> lists, and if possible, both to be sorted.<br>* I've seen examples using simple xhtml lists (#unorderedList), but not using xhtml <select> with <option>'s as items. AFAIK, the difference is using a list you're in control of the rendering of an item (see #renderInventoryOn: or #renderListItems: On: ) but using a select, how do I specify the #passenger: for each <option>?
<br>* Don't know if makes any difference, but right now I'm filling the select's dinamically.<br><br>My guess:<br><br>#renderDivAOn: html<br> html div id: 'divA';<br> with: [ html select<br> size: 10;
<br> list: self itemListA;<br> script: ( html sortable<br> constraint: false;<br> dropOnEmpty: true;<br> containment: #(divA divB);
<br> onUpdate: ( html updater ?????) );<br> on: #itemListA<br> of: self ]<br><br>the same for #renderDivBOn: html, and if #itemListA was:<br><br> ^ Collection methodDictionary keys
<br><br>now it's gonna to be something like?:<br><br>#itemListAOn: html<br> ^ Collection methodDictionary keys <br> collect: [: each | html option; <br> passenger: each;
<br> with: [ each ] ]<br><br>Any idea?<br>(I'm using Scriptaculous-lr.216)<br><br>Cheers<br><br>