palm基础----5 使用浏览器

(1)    单独打开一个浏览器窗口

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



(2)    内嵌一个浏览器窗口

<div x-mojo-element="WebView" id="webViewId"></div>

this.controller.setupWidget("webViewId", this.attributes =

{

    url : 'http://www.google.com',

    minFontSize : 18,

}, this.model = {}); 

 


 

posted on 2010-11-26 23:27  TroyZ  阅读(227)  评论(0编辑  收藏  举报