Feeds:
文章
评论

Posts Tagged ‘OpenSocial’

Static Class gadgets.views.ViewType

<!– Defined in views.js –>

Used by Views.

Field Detail

CANVAS

<static> object CANVAS
    A view where the gadget is displayed in a very large mode. It is typically the main content on the page. The viewer is not always the same as the owner.

HOME

<static> object HOME
    A view where the gadget is displayed in a small area usually on a page with other gadgets. Typically the viewer is the same as the owner.

PREVIEW

<static> object PREVIEW
    A demo view of the gadget. In this view the owner and viewer are not known.

PROFILE

<static> object PROFILE
    A view where the gadget is displayed in a small area usually on a page with other gadgets. The viewer is not always the same as the owner.

Back to top

Static Class gadgets.window

<!– Defined in dynamic-height.js –>

Provides operations for getting information about and modifying the window the gadget is placed in. 

Method Detail

adjustHeight

<static> adjustHeight(opt_height)
    Adjusts the gadget height. Make sure to include <Require feature=”dynamic-height” /> in <ModulePrefs><ModulePrefs/>;

    Parameters:

      Number opt_height – An optional preferred height in pixels; If not specified, will attempt to fit the gadget to its content. e.g  adjustHeight(‘300px’)

getViewportDimensions

<static> Object getViewportDimensions()

    Returns:

      Object  An object with width and height properties (height of the content, not the height you see)
 

Read Full Post »

I attended the Google OpenSocial Hackathon in Beijing on Jun 13,  hold by several important OpenSocial guys from Google US HQ:

Dan Peterson: Google Product Manager of open social
Shawn Shen: Google Developer Program
Jason Costa: Google Technical Programs Manager
Chris Schalk: Google Developer Advocate (ex-Oracler)

They and 3 google china employees introduced OpenSocial essentials, shared their experience and ongoing projects with us.  Most of the audience are google’s opensocial partners in China, including: tianya.cn, myspace.cn, 51.com, tianji.com, xiaonei.com, 163.com etc.

group photo 合影

Here is a short summary of this event (in Chinese). Useful resources and PPTs are listed below:

OpenSocial概览 (简介):
http://docs.google.com/Presentation?id=dgqxv878_199ccfbd9cc

RESTful API (OAuth & Signed Fetch):
http://docs.google.com/Presentation?id=dgqxv878_294f5k73bg7

OpenSocial小工具 – JavaScript API:
http://docs.google.com/Presentation?id=dgqxv878_275d8xfk3gz

Life of a Gadget:
http://docs.google.com/Presentation?id=dgqxv878_113hhsfg9zp

OpenSocial Flash API:
http://opensocial-resources-zh.googlecode.com/svn/trunk/opensocial-fl…

OpenSocial小工具实验室:
http://opensocial-resources-zh.googlecode.com/svn/trunk/gadget-dev-tu…

Shindig概览:
http://docs.google.com/Presentation?id=dgqxv878_319dd28w4hr

受限系统的容器托管服务(草案):
http://docs.google.com/Presentation?id=dgqxv878_367d2p98md2

OpenSocial模板系统:
http://docs.google.com/Presentation?id=dgqxv878_342gn5ww4fj

Closing discussion:
http://docs.google.com/Presentation?id=dgqxv878_34cm27dzgc

资源链接页面:
http://docs.google.com/Doc?id=dgqxv878_366g253xmdk

活动照片:
http://tinyurl.com/67e72g
http://tinyurl.com/5qub2a

 

Google Code:
http://code.google.com/intl/zh-CN/
OpenSocial Developer Documentation:
http://code.google.com/intl/zh-CN/apis/opensocial/
OpenSocial Forums:
http://groups.google.com/group/opensocial-china?hl=zh-CN.
To help shape the spec:
http://groups.google.com/group/opensocial-and-gadgets-spec/
OpenSocial v0.8 spec:
http://tinyurl.com/5qdzwq
OpenSocial RESTful API Spec:
http://tinyurl.com/6yuzch
To check out and build Shindig:
http://incubator.apache.org/shindig/#tab-home
Subscribe to the Shindig mailing list:
shindig-dev-subscribe@incubator.apache.org
Architectural Overview of Shindig:
http://tinyurl.com/57qalf

Implementing Shindig tutorial (Java, PHP):
http://chrisschalk.com/shindig_docs/io/shindig-io.html
Installing Shindig (for Windows):
http://chabotc.com/guides/shindig_install/
OpenSocial Templates Proposal:
http://groups.google.com/group/opensocial-and-gadgets-spec/web/opensocial-templates
How to build a Gadget tutorial:
http://opensocial-resources-zh.googlecode.com/svn/trunk/gadget-dev-tutorial/Tutorial.html

Read Full Post »

1)  can’t fetch gadget xml

If you are running shindig within a company, probably you’re behind a firewall.  To let shindig goes through it: 

   mvn jetty:run -Dhttp.proxyHost=proxydomain -Dhttp.proxyPort=proxyport

Thanks Martin.

This should be able to set in some xml file.  I’ll post here if I find out.

2) make request 504 timeout error;  don’t be evil

Most likely your proxy server is not fast enough, try a faster one.  Not 100% sure if this is the actual reason. If so, it is a little stupid.

Thanks Paul Lindner.

Read Full Post »