content element

Syntax

<content src="string" 
         rim:allowInvokeParams=["true" | "false"]
         type="string"
         charset="string" />

Description

The <content> element specifies the start page that the BlackBerry WebWorks app displays when it runs. The start page can contain the web address of a file that is located outside of the app archive. If you specify a page that is outside of the app archive, you must allow access to the address using the <access> element.

Parent elements

<widget>

Child elements

Can contain <rim:background>.

Occurrences

One

Attributes

You can use the following attributes in the <content> element:

Attribute

Description

src

The src attribute specifies the source HTML file in the app archive.

This attribute is required.

rim:allowInvokeParams

The rim:allowInvokeParams attribute specifies that parameters can be passed to your app when it is invoked from another app.

By default, parameters cannot be passed to your app.

This attribute is optional.

type

The type attribute specifies the MIME type of the file that is specified in the src attribute.

This attribute is optional.

charset

The charset attribute specifies the character set that is used by the file that is specified in the src attribute.

This attribute is optional.

Example: Specifying a start page

<content src="startpage.html" rim:allowInvokeParams="true" />

Last modified: 2013-10-02