[Seaside] JQDroppable convience method
Stan Shepherd
stan.shepherd414 at gmail.com
Mon Dec 7 17:54:03 UTC 2009
Hi, when I try this out in the functional tests
http://localhost:8090/tests/jquery-ui/droppableinteraction
I get the draggable is nil:-
renderContentOn: html
#(#blue #red #green) do:
[ :each |
(html div)
class: 'box';
class: each;
script: (html jQuery new draggable revert: true) ].
html div class: 'clear'.
(html div)
class: 'drop';
class: 'brown';
script:
((html jQuery new droppable)
accept: 'div';
hoverClass: 'drop-hover';
activeClass: 'drop-active';
onDrop:
(html jQuery ajax callbackDroppable:
[ :event |
Transcript cr;
show: (event at: #draggable) asString ]))
(nb if i put ...onDrop: (html ajax callbackDroppable: ... as in your example
I get MessageNotUnderstood: WARenderCanvas>>ajax)
Any pointers as to where I'm going wrong please? Johan do you have the
snippet that works in your context?
Thanks, ...Stan
Johan Brichau wrote:
>
>
> On 28 Oct 2009, at 13:03, Lukas Renggli wrote:
>
>> Johan, your code would now look like this:
>>
>> ... onDrop: (html ajax
>> callbackDroppable: [ :event |
>> (event at: #draggable) doSomething ])
>
> That is indeed very nice. Thanks Lukas!
>
>> Note that I also renamed #trigger:passengers: to
>> #callback:passengers:, that fits better the jQuery protocol.
>
> yes, indeed.
>
>> Let me know if this is useful or if there is something else missing.
>> This is mostly untested functionality so expect to encounter bugs.
>
> will do ;-)
>
> ----------------------------
> Johan Brichau
> johan.brichau at uclouvain.be
>
>
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
--
View this message in context: http://n4.nabble.com/JQDroppable-convience-method-tp277346p954575.html
Sent from the Squeak - Seaside mailing list archive at Nabble.com.
More information about the seaside
mailing list