Hello,

I customized jQuery for OpenSocial Gadgets. It was named,
"opensocial-jquery".

opensocial-jquery is jQuery based concise JavaScript Library
for rapid OpenSocial Gadgets development. When you use
opensocial-jquery, you can develop OpenSocial Gadgets by the
method of developing the website by jQuery.

Source code and examples are here:
http://code.google.com/p/opensocial-jquery/

opensocial-jquery is a package of customized jQuery and
plugins.

= Customized jQuery

Ajax

1) jQuery.ajax relays all requests to gadget server proxy,
and allows the cross domain request. All dataType such as
"html", "xml", and "json", all short cuts such as jQuery.get,
jQuery.post, and jQuery.getJSON are supported.
 -- gadgets.io.makeRequest

2) jQuery.ajax supports new dataType "feed", and new short
cut jQuery.getFeed.
 -- gadgets.io.ContentType.FEED

Events

3) jQuery.ready is executed when gadget loads on gadget
container.
 -- gadgets.util.registerOnLoadHandler

= Plugins

Preference

4) jQuery.pref retrieves a preference as a string.
 -- gadgets.Prefs.getString

Window

5) jQuery(window).title sets the gadget title.
 -- gadgets.window.setTitle

6) jQuery(window).adjustHeight adjusts the gadget height.
 -- gadgets.window.adjustHeight

= Roadmap

a) jQuery.ajax supports OAuth, and simplifies OAuth
Authentication for OpenSocial Gagdgets.

b) OpenSocial DataRequest is supported as jQuery.getData and
jQuery.postData. Requests such as create activity and send
message also.

c) Other.. OpenSocial API and Gadgets API are supported as a
plugins.

Regards,

Nobuhiro Nakajima
http://friendfeed.com/nakajiman

Reply via email to