[Seaside] SUSortable - how to show "waitbox" on drop event

Petr Fischer petr.fischer at praguesoft.cz
Mon Apr 7 23:18:55 UTC 2008


Tried with no luck. Function showWaitDIVBox(); was not called. pf

On 7.4.2008, at 21:03, Gerhard Obermann wrote:
> In that case i think you need your own method!
> Something like this!
>
> triggerWithUpdateSortable: aString callback: aBlock
>  self
>   callback: [ :value |
>    aBlock value: ((value findTokens: $,) collect: [ :each |
>     canvas context callbacks at: each ifAbsent: [ nil ] ]) ]
>   value: (SUSortable new id: aString; sequence; onUpdate: (SUStream  
> on: 'showWaitDIVBox();'))
>
>
>
>
> On Mon, Apr 7, 2008 at 8:50 PM, Petr Fischer <petr.fischer at praguesoft.cz 
> > wrote:
> onUpdate is ocupied by:
>
> html updater
>        id: 'someId';
>        triggerSortable: aComponentIdString callback: [ :values |  
> "resorting code" ]
>        callback: [ :renderer | "sub-component rendering code" ]
>
> I am little messed now - where is the place for my little javascript  
> function call eg.: showWaitDIVBox();
>
> Thanks, pf
>
>
> On 7.4.2008, at 20:09, Gerhard Obermann wrote:
> Hi!
>
> You could use onStart: and onEnd: if you are using SUDraggable and  
> SUDroppable!
> For SUSortable you could only try:
> onUpdate: anObject
>  "Called when the drag ends and the Sortable's order is changed in  
> any way. When dragging from one Sortable to another, the callback is  
> called once on each Sortable."
>
> br
> Gerhard
>
>
>
> On Mon, Apr 7, 2008 at 5:27 PM, Petr Fischer <petr.fischer at praguesoft.cz 
> > wrote:
> Hi, is posible to show "lighboxed wait dialog" on drop event in  
> sortable?
> More generally - can I call my own javascript function on drop event  
> in sortable?
>
> Thanks for suggestion, pf
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the seaside mailing list