Callback function for JSON format

11 views
Skip to first unread message

vlad

unread,
Jan 25, 2009, 5:55:55 PM1/25/09
to Shrub (GAE)
I am looking at Shrub JSON response and I was wondering if there is
any callback function parameter.
I want to use it in an Ajax application and without a callback there
isn't a simple way to do cross-domain requests.

Am i missing something or the only way to use Shrub with Ajax is by
hosting it or a proxy?

gabe

unread,
Jan 26, 2009, 9:24:32 AM1/26/09
to Shrub (GAE)
Oh good call. Should now accept a callback parameter. I put some more
detailed documentation up on the main page (http://
shrub.appspot.com/).

Also changed the content-type to text/javascript (Before it was
application/json).

Let me know if you see any problems, or you know, if you have anything
cool to show :)

Thanks,
--gabe

vlad

unread,
Jan 28, 2009, 8:17:12 AM1/28/09
to Shrub (GAE)
I've played a little with some javascript and your API but in the end
I've build a google gadget for browsing a bucket.
Because Google Gadgets API already has a fetch function I don't need
any longer the callback param (it's a good enhancement anyway).

You can view it here:
http://www.google.com/ig/adde?hl=en&moduleurl=hosting.gmodules.com/ig/gadgets/file/109842928183505429164/S3Terminal.xml&source=imag

Right now it supports only a few commands (ls, cd, exec) but in the
future I want to add more functionality.

Gabe

unread,
Jan 28, 2009, 8:46:40 AM1/28/09
to shru...@googlegroups.com
Thats killer! :D Yeah its probably more stable using the urlfetch
directly from gadgets.
Reply all
Reply to author
Forward
0 new messages