Hopbot log for 2009-06-15 - Helma IRC channel: #helma on irc.freenode.net

2009-06-15:

[9:31] <pbclr> Hi! Does anyone have any pointers to help me setup a JSONP response from helma-ng... thanks!
[9:36] <simono> pbclr, you can for now use a normal Response and feed it the output of JSON.stringify()
[9:37] <simono> i've seen hannesw use JsonResponse in some democode, but that's not implemented yet afaik
[9:51] <zumbrunn> pbclr: regarding your question from this weekend... where exactly are you stuck with JSONResponse and Model.All()
[9:51] <zumbrunn> and which Model.All() are you talking about?
[9:52] <zumbrunn> I guess the obvious answer is to loop through the result set and create the regular js object you want to stringify
[9:52] <zumbrunn> but I assume the obvious answer isn't what you were looking for?
[10:15] <pbclr> thanks, simono, zumbrunn!
[10:15] <pbclr> zumbrunn: no, I'm afraid I was looking for the obvious answer!:) I'm begining to use javascript without the training wheels and I got a bit confused somewhere between the shell, the script and my ignorance of basic patterns like the one you just described (iterate result set, assemble regular object)
[10:16] <zumbrunn> :-)
[10:17] <pbclr> the Model.all() I was refering was just a regular Book.all() query set...
[10:17] <pbclr> thanks again!
[10:18] <zumbrunn> ok, I thought that's what I meant ...I just wasn't sure because of the capitalized ".All()"
[10:19] <zumbrunn> what *you* meant

 

 

In the channel now:

Logs by date: