Browser
You can use the Application Manager's launch method to open the Browser application (com.palm.app.browser) with a specific URL in a separate card.
Notes:
-
The browser can load any website that is accessible over conventional HTTP and HTTPS protocols.
-
For information about compatibility with Web standards, see the Browser Standards page.
Examples
luna-send
luna-send -n 1 luna://com.palm.applicationManager/open '{ "id": "com.palm.app.browser", "params":{"target": "http://www.google.com"}}'
{ "processId": "success", "returnValue": true }
Enyo
. . .
{
name: "launchBrowserCall",
kind: "PalmService",
service: "palm://com.palm.applicationManager/",
method: "launch",
onSuccess: "launchFinished",
onFailure: "launchFail",
onResponse: "gotResponse",
subscribe: true
},
. . .
launchFinished: function(inSender, inResponse) {
enyo.log("Launch browser success, results=" + enyo.json.stringify(inResponse));
},
launchFail: function(inSender, inResponse) {
enyo.log("Launch browser failure, results=" + enyo.json.stringify(inResponse));
},
launchBrowser: function(inSender, inResponse)
{
this.$.launchBrowserCall.call({"id": "com.palm.app.browser", "params":{"target": "http://www.google.com"}});
}
Mojo
this.controller.serviceRequest("palm://com.palm.applicationManager", {
method: "launch",
parameters: {
id: 'com.palm.app.browser',
params: {
"target": "http://www.google.com"
}
}
});
Success
Launch browser success, results=
{
"returnValue": true,
"processId": "success"
}
Sample Code
See Services Sample in the SDK.