O'Reilly logo

Programming Social Applications by Jonathan LeBlanc

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Application Content

Content sections allow developers to define the content to be loaded for the different views of a gadget. As described in Chapter 1, most containers include different views, such as a small or large view, and Content sections are where those views are defined.

Content sections have several attributes available to them, all of which are optional (Table 3-8).

Table 3-8. Content attributes

Attribute

Description

href

A destination URL for the content to be loaded. This is a proxied content-loading approach to defining your gadget sections.

preferred_height

The initial height of the gadget in pixels.

preferred_width

The initial width of the gadget in pixels.

type

The type of content to be loaded. The values can be either html (default) for content within the gadget, or url for an external content URL specified with the href attribute.

view

The view for which the content is to be loaded. Containers may offer multiple views, which can be defined through these Content sections. Multiple view names are specified as comma-delimited values (e.g., home, profile).

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required