[Seaside] What to write in the "onDrop:" ?

Richard Durr Richard.Durr at gmail.com
Thu Aug 13 15:21:01 UTC 2009


Happy to help ^^
I think it is always used like that since the comment says:
"Register aBlock as a secondary callback. anObject is interpreted as  
JavaScript on the client-side, the result will be sent back to the  
server and passed into aBlock. Multiple secondary callbacks can be  
defined with one receiver."

RD

Am 13.08.2009 um 15:59 schrieb Sebastian Nozzi:

> Hello Richard,
>
> this is great! Thanks for your answer. I'll try it out as soon as I  
> can.
>
> I didn't consider the approach to do something on the draggable,
> instead of the droppable...
>
> Also, I might have misunderstood or overseen how to use  
> callback:value:
> Is it always used like that? (the value part "extracting" or executing
> Javascript info)
>
>
> Thanks again,
>
> Sebastian
>
>
> 2009/8/13 Richard.Durr at gmail.com <Richard.Durr at gmail.com>:
>> Hey Sebastian,
>>
>> in my Bachelor Thesis, I do something like that this way:
>>
>> html div id: myID;
>>  onMouseOver: (html draggable
>>    onEnd: (html request
>>      callback: [:value |
>>        self updatePositionOf: aPassenger with: value.]
>>      value:
>>        (html element id: myID) positionedOffset));
>>
>> where value is a String in the form (x,y).
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>



More information about the seaside mailing list