Hi,<br><br>I'm using Seaside 3.0a5 and I've importe jQuery and jQueryUI<br><br clear="all">I'm trying to do a drag & drop effect like here : <a href="http://demo.seaside.st/javascript/jquery-ui/droppableinteraction" target="_blank">http://demo.seaside.st/javascript/jquery-ui/droppableinteraction</a><div style="display: inline; cursor: pointer; padding-right: 16px; width: 16px; height: 16px;">
</div>
but there is some information missing. I can move my elements, I detect
when there are on the draggable zone but I don't find the method for
adding my element wich I am dropping in the draggable zone. On seaside website they use a callbackDroppable method but I do not have it.<br>
<br>I'm doing this :<br><br>WAComponent subclass: #Test2<br> instanceVariableNames: 'selected'<br> classVariableNames: ''<br> poolDictionaries: ''<br> category: 'visuel'<br>
<br>Test2>>renderContentOn: html<br> self dragzone:html .<br> self dropzone:html.<br><br>Test2>>dragzone: html<br> | maListe |<br> maListe := Set new .<br> maListe add: Composant new . "here Composant is juste a string"<br>
html div class: 'inventory ui-corner-all drag'; with: [ maListe do: [ :each | html div<br> with: each] ] .<br><br>Test2>>dropzone: html<br>html div<br> class: 'ui-droppable ui-corner-all drop';<br>
script: (html jQuery new droppable<br> onDrop: (html jQuery ajax callback:<br> [ :event | self selected add: (event at: #draggable) ] ;<br> html: [ :r | self renderSelectedItemsOn: r ]));<br>
with: [ self renderSelectedItemsOn: html ]<br><br>Test2>>renderSelectedItemsOn: html<br> self selected do: [ :each |<br> html div<br> class: each;<br> passenger: each;<br> script: (html jQuery new draggable<br>
onStop: (html jQuery this effect<br> percent: 1; puff;<br> onComplete: (html jQuery this parent load html: [ :r |<br> self selected remove: each ifAbsent: [ ].<br>
self renderSelectedItemsOn: r ]))) ]<br>
<br>Test2>>initialize<br> super initialize.<br> self selected: Set new<br><br>If
someone can help me with the drroppablezone method. I tryed a lots of
things, I searched on the Internet, on the source code but I didn't
find anything. <br>
<br>A. Cervoise<br>