<content>

Syntax:

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

Description:

The <content> element specifies the start page that the BlackBerry WebWorks application displays when it runs. The start page can contain the web address of a file that is located outside of the application archive.

Occurrences:

One.

Parent elements:

<widget>

Child elements:

None.

Content:

None.

Attributes:

You can define the following attributes for this element:

Attribute

Description

src

Required. The src attribute specifies the source HTML file in the application archive.

rim:allowInvokeParams

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

By default, parameters cannot be passed to your application.

type

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

charset

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

Example:

The following example shows how to specify a start page called startpage.html.

<content src="startpage.html" />

Last modified: 2015-04-16



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus