[Seaside] Javascript calls through jQuery
Esteban A. Maringolo
emaringolo at gmail.com
Mon Mar 3 01:09:43 UTC 2014
Hi Johan,
I added the #json: method as you suggested.
It seems to be working (I put a halt in the #json: callback and it
halted), the only problem is that it is causing a full page reload (as
a normal callback), and then the success function callback is never
called on the client.
This is the code I'm using:
html form: [
"...snipped code"
html button
onClick: (html jQuery ajax
serializeForm;
onComplete: (
html jQuery getJson
json: [:json | self renderJsonResponseOn: json ];
onSuccess: 'console.log(arguments[0])'));
with: 'Filter!'
]
Any suggestion?
Thanks!
ps: Is there a way to generate pretty-printed JS and HTML source?
More information about the seaside
mailing list