Class tlv8.portal
portal核心基础对象

 Class Summary
  tlv8.portal()
portal核心基础对象

 Method Summary
<static> void  closeWindow(tabId)
关闭portlet
<static>string  currentTabId()
获取当前portlet的ID
<static> void  openWindow(name, url, param)
打开指定的portlet
<static> void   callBack(tabID,FnName,param)
回调指定页面的函数(页面ID,函数名,参数)

 Class Detail
tlv8.portal()
portal核心基础对象

 Method Detail
<static> void closeWindow(tabId)
关闭portlet

   Parameters:
     tabId
         {string} portletID  有该参数就关闭指定窗体,无该参数就关闭当前窗体

   Returns:
         {void}

   Example:
         tlv8.portal.closeWindow();


<static>string currentTabId()
获取当前portlet的ID

   Returns:
         {string}

   Example:
         tlv8.portal.currentTabId()


<static>void openWindow(name, url, param)
打开指定的portlet

   Parameters:
     name
         {string} 打开窗口的显示名称
     url
         {string} 打开窗口的路径
     param
         {string} 向需要打开的窗体传的参数

   Returns:
         {void}

   Example:
         tlv8.portal.openWindow('百度', 'http://www.baidu.com', 'newwindow');


<static>void callBack(tabID,FnName,param)
回调指定页面的函数

   Parameters:
     tabID
         {string} 回调窗口的ID
     FnName
         {string} 回调函数名
     param
         {Object} 给回调函数的参数 可以是string 可以是json

   Returns:
         {void}

   Example:
        窗口一:
        function mycallBackFn(data) {
        alert("回调了"+data);
        }
        var url = '/JBIZ/demo/potal/func-callback_de.html?tabID='+tlv8.portal.currentTabId();
        tlv8.portal.openWindow('回调页',url,null);

        窗口二:
        var cllTabID;
        function initPage(){
         cllTabID = tlv8.RequestURLParam.getParam("tabID");
        }
        function callBackFn(){
         tlv8.portal.callBack(cllTabID,"mycallBackFn","ok");
        }
        //onload="initPage()"//
        //input type="button" onclick="callBackFn()" value="回调"//