TNT blog  
          日歷
          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345
          統計
          • 隨筆 - 5
          • 文章 - 40
          • 評論 - 7
          • 引用 - 0

          導航

          常用鏈接

          留言簿(2)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          收藏夾

          home

          搜索

          •  

          最新隨筆

          最新評論

          閱讀排行榜

           
          DWRUtil.addOptions('coRegulateurList_tbody', TermList, {
          creatorFunction: function(oneTerm)
          {
          var oneOption = new Option(oneTerm.terminalId+(oneTerm.terminalActive?" Active": ""), oneTerm.terminalId);
          oneOption.id='term_'+oneTerm.terminalId;
          oneOption.selected=oneTerm.terminalSelected;
          }
          });

          But why the hell use DWRUtil, I'm doing all the work :op

          Some maybe like this it would be smarter :

          DWRUtil.addOptions(
          'coRegulateurList_tbody', TermList, {
          idFunction: function(oneTerm)
          {
          return 'term_' +oneTerm.terminalId;
          },
          selectedFunction:function(oneTerm)
          {
          return oneTerm.terminalSelected;
          },
          textFunction:function(oneTerm)
          {
          return oneTerm.terminalId+(oneTerm.terminalActive?" Active" :"");
          }
          });
          posted on 2007-05-20 17:26 TNT 閱讀(308) 評論(0)  編輯  收藏 所屬分類: ajax
           
          Copyright © TNT Powered by: 博客園 模板提供:滬江博客
          主站蜘蛛池模板: 蓬溪县| 伊宁县| 宣汉县| 古田县| 红安县| 米林县| 修文县| 平果县| 临猗县| 天镇县| 观塘区| 华池县| 正安县| 凉城县| 古蔺县| 新河县| 阿图什市| 叶城县| 绥芬河市| 亚东县| 滦南县| 蚌埠市| 深圳市| 察雅县| 延庆县| 尚志市| 梓潼县| 屏东市| 安泽县| 普兰店市| 渑池县| 聂拉木县| 渝北区| 苍山县| 齐河县| 新绛县| 永寿县| 高要市| 平遥县| 遵义县| 滨州市|