隨筆-9  評論-168  文章-266  trackbacks-0
          (一)PANEL面板加載JSP內容

           var boardcenter = new Ext.Panel({
            id : 'boardcenter',
            autoLoad : {
             url : './informationbean/information.jsp'
            },

            title : '公告',
            region : 'north',
            html : '公告區測試內容!'

           });




          (二)  直接用PANEL面板的LOAD方法更新內容
          panelobject.load({
              url: "your-url.jsp", params: {param1: "foo", param2: "bar"}, // or a URL encoded string
              callback: yourFunction,
              scope: yourObject, // optional scope for the callback
              discardUrl: false,
              nocache: false,
              text: "Loading...",
              timeout: 30,
              scripts: false
          });


          (三)  以獲得其PANEL面板內容對象,來更新面板內容. 
          var detailcenter = new Ext.Panel({
            id:'detailcenter',
            height : 250,
            region : 'south',
            title : '內容詳細區',
            html : '詳細內容.'
           });


          //   fn : function() {// ----------------
          //
          //     var selNode = view.getSelectedNodes();
          //     // var detailEl = Ext.getCmp('img-detail-panel').body;
          //      if(selNode && selNode.length > 0){
          //     selNode = selNode[0];
          //     // Ext.getCmp('ok-btn').enable();
          //     // var data = this.lookup[selNode.id];
          //     // detailEl.hide();
          //     // this.detailsTemplate.overwrite(detailEl, data);
          //     // detailEl.slideIn('l', {stopFx:true,duration:.2});
          //     // }else{
          //     // Ext.getCmp('ok-btn').disable();
          //     // detailEl.update('');
          //     
          //
               var bd = Ext.getCmp('detailcenter').body; // 獲得panel主體內容
               bd.update('').setStyle('background', '#fff'); // 清空panel內容
               switch (nodetitle)
               {
               case '測試文章標題1':bd.hide().update('測試文章標題1').slideIn('0', {stopFx:true,duration:.2});break;
               default:bd.hide().update('測試文章標題2').slideIn('l', {stopFx:true,duration:.2});break;
               }
          posted on 2008-08-21 12:24 紫蝶∏飛揚↗ 閱讀(12773) 評論(3)  編輯  收藏 所屬分類: EXTJS

          評論:
          # re: EXT.PANEL面板加載和更新內容[未登錄] 2009-04-22 11:29 | 1
          1  回復  更多評論
            
          # re: EXT.PANEL面板加載和更新內容 2011-06-07 14:35 | 紫蝶∏飛揚↗
          自已回來復習哈...雖說現在EXTJS4了,但用起來還是沒EXTJS3順手.  回復  更多評論
            
          # re: EXT.PANEL面板加載和更新內容 2011-09-07 15:50 | 路過
          nodetitle是指什么?我要更新的是同一面板的內容。  回復  更多評論
            
          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(5)

          隨筆檔案(9)

          文章分類(339)

          文章檔案(265)

          最新隨筆

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 库车县| 沛县| 永丰县| 永德县| 宣威市| 泸州市| 闽侯县| 平罗县| 九江市| 灵武市| 襄樊市| 彭州市| 新绛县| 澄城县| 临沭县| 贵定县| 平乐县| 岳池县| 长乐市| 介休市| 洛隆县| 清流县| 三亚市| 嘉定区| 岐山县| 璧山县| 廉江市| 巢湖市| 贡觉县| 嘉定区| 南丹县| 南昌县| 乌兰县| 微山县| 和静县| 凉山| 靖西县| 墨竹工卡县| 乐陵市| 灵台县| 洛扎县|