[Seaside] Ajax callbacks on UI object events

Johan Brichau johan.brichau at uclouvain.be
Tue Jun 8 14:31:41 UTC 2010


Hi Robert,

Except the fact that you are passing an onDrop parameter twice, I do not see any problems with it.
Mind that only the last onDrop will be retained by Seaside!
This is different from onClick: messages passed to html tags...

Hope that helps
Johan

On 06 Jun 2010, at 19:21, Robert Sirois wrote:

> This code works on a click event on the div, but not with #onDrop: on the droppable as below:
> 
>     html div
>         style: 'height: 55px; width: 55px; border: 1px solid; color: #A6A375'.
>         script: ((html jQuery new droppable)
>             tolerance: 'fit';
>             onDrop: (html jQuery this droppable disable);
>             onOut: (html jQuery this droppable enable);
>             onDrop: (html jQuery ajax callback: [:value | Transcript show: value ] value: ((html jQuery this find: 'img') attributeAt: 'title'))
>         ).
> 
> What is the reason why?
> 
> Thanks,
> RS
> 
> Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. See how. _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

----------------------------
Johan Brichau
johan.brichau at uclouvain.be






More information about the seaside mailing list