Browser

From WebOS101

Jump to: navigation, search

Contents

Introduction

Currently, webOS has no direct service request for operating the browser app. Instead, this service relies on the Application Manager service's open method. This page documents the parameters that can be passed to the browser app. A quick example of the usage to open the browser to a link is included below.

Using the browser

Parameters

In addition to the id required for all Application Manager calls the browser app accepts the destination URL in the 'target' parameter:

Parameter Type Description
id string Set to "com.palm.app.browser".
params.target string Optional. URL of the form "://", where url is a well-formed URI to access a Web location.

Example

this.controller.serviceRequest("palm://com.palm.applicationManager", {
method: "open",
parameters: {
id: 'com.palm.app.browser',
params: {
target: "http://www.example.com"
}
}
});

Useful Links

Personal tools