[Seaside] getting a single value through jQuery
Richard Durr
richard.durr at googlemail.com
Thu Oct 15 11:51:40 UTC 2009
Interessting, thank you very much! :)
On Mon, Oct 12, 2009 at 8:32 AM, Lukas Renggli <renggli at gmail.com> wrote:
> > Is something like the following actually possible at all?
> > html div onClick: (html jQuery this attributeAt: 'title' put: (html
> jQuery
> > ajax loadValue: [ :s | s nextPutAll: #{test -> 1}]))
>
> No, this is not possible. Ajax calls do not have a return value,
> unfortunately there are no continuations in Javascript.
>
> You can achieve the same the other way round though:
>
> html div
> onClick: (html jQuery ajax
> script: [ :s | s add: (s jQuery this attributeAt: 'title' put:
> #test -> 1) ]);
> with: 'Click me'
>
> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20091015/c48246ef/attachment.htm
More information about the seaside
mailing list