| d2r diego's weblog |
a google homepage module for ning photosI spent a couple of hours last friday tinkering with the Google Personal Homepage (Apparenlty called "ig" or perhaps "iGoogle"? Am I the last one to notice this? Probably). How hard was it to create a module for in that would pull in data from a Ning app? The answer: not hard at all. So what to do? I decided to write a simple module that would do a nice AJAXy slideshow of public photos posted to Ning Photos. Step one was creating the actual slideshow and making it work as a separate page, and here it is. Step two was taking that behavior and wrapping it in a way that IG would understand, and here is that. From the POV of Ning development, there wasn't really much to at all. The IG modules were easy to write as well. Something did make me scratch my head for a while: Google is actually flowing content through their servers, Anyway, it was a cool experiment. I'm thinking about other uses for it, probably a bookmarks module would be the most appropriate one to try next, since it's pretty useful IMO. ps: if you want to try the module, you need to use the link for it and use the developer module to include it, since it's not yet "published" in Google's list of available modules. ps 2: of course, all the sources for how the module and the photo view slideshow with fadeout works are accessible from within Ning, both for viewing and for cloned apps. :) Categories: ningPosted by diego on March 8 2006 at 10:08 PM | TrackBack (0) Comments (please see the comments & trackback policy).
Nice to see you had an easy time with the Google homepage api. With regards to your comments around forcing you to use IG_FetchContent... you can try making an XMLHttp request yourself from the Google.com homepage to your Ning servers but you'll find your browser won't let you. Same-domain security restrictions. Most of the problems you may have been having might have been caused by this rather than Google doing anything to prevent you. IG_FetchContent is your friend. It allows you to retrieve content from a site on a different domain. It essentially uses Google as a proxy. You are perfectly welcome to use document.getElementById() if you want... it is just that _gel() is easier to type and saves bytes. Posted by: Dylan at March 9, 2006 5:09 PMPost a comment
Copyright © Diego Doval 2002-2007.
|
