[Seaside] getting a single value through jQuery
Lukas Renggli
renggli at gmail.com
Mon Oct 12 06:32:02 UTC 2009
> 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
More information about the seaside
mailing list