TNT blog  
          日歷
          <2025年8月>
          272829303112
          3456789
          10111213141516
          17181920212223
          24252627282930
          31123456
          統計
          • 隨筆 - 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 閱讀(310) 評論(0)  編輯  收藏 所屬分類: ajax
           
          Copyright © TNT Powered by: 博客園 模板提供:滬江博客
          主站蜘蛛池模板: 高密市| 泗洪县| 逊克县| 昌图县| 辛集市| 都昌县| 区。| 东宁县| 龙南县| 淮北市| 蒲江县| 会泽县| 沧源| 东乡| 古浪县| 西乡县| 理塘县| 保亭| 韩城市| 屏东县| 疏勒县| 仲巴县| 香格里拉县| 左贡县| 合川市| 崇仁县| 嘉峪关市| 犍为县| 藁城市| 衡山县| 南和县| 汝州市| 平山县| 商河县| 乌兰县| 禄劝| 沽源县| 奇台县| 东宁县| 寿宁县| 孝昌县|