[Seaside] Getting json after an ajax call
Dave
lasmiste at gmail.com
Wed Jul 20 21:03:30 UTC 2016
Hi folks,
I can't retrieve a json from the server. I have an ajax call, on success I
want to get some json in return.
Here is a sample code:
html jQuery ajax
callback: [ ... ] ;
onSuccess:
(html jQuery getJson
json: [ :js | js object:[(Dictionary new at:'aSampleKey'
put:'aSampleValue'; yourself) asJson] ];
onSuccess: 'console.log(arguments[0])')
Unfortunately the console prints Object {}
I guess there is something wrong with js object:[] but I've no idea of what
Dave
--
View this message in context: http://forum.world.st/Getting-json-after-an-ajax-call-tp4907286.html
Sent from the Seaside General mailing list archive at Nabble.com.
More information about the seaside
mailing list