Feeds:
文章
评论

Archive for the ‘OpenSocial’ Category

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 »

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 »