[Seaside] JQDroppable convience method, and jumping boxes
Stan Shepherd
stan.shepherd414 at gmail.com
Wed Dec 9 13:12:03 UTC 2009
That's got it; thanks Johan.
Does anyone else experience the coloured boxes in the demo jumping on
starting drag?
I'm on Swiftfox 3.5.2 , Ubuntu 9.04.
Same for Firefox 3.5.5 on Xubuntu 9.10
...Stan
Johan Brichau wrote:
>
>
> On 07 Dec 2009, at 18:54, Stan Shepherd wrote:
>
>> Hi, when I try this out in the functional tests
>> http://localhost:8090/tests/jquery-ui/droppableinteraction
>>
>> I get the draggable is nil:-
>
> Hi Stan,
>
> That sounds as if the the draggable does not have a passenger declared.
> Off the top of my head, I think you need to add the following line
> (inserted below).
>
>> renderContentOn: html
>> #(#blue #red #green) do:
>> [ :each |
>> (html div)
> passenger: each;
>> 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)
>
> I think that's a typo and it should be: html jQuery ajax
>
> ----------------------------
> 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-tp277346p956037.html
Sent from the Squeak - Seaside mailing list archive at Nabble.com.
More information about the seaside
mailing list