TNT blog  
          日歷
          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345
          統(tǒng)計(jì)
          • 隨筆 - 5
          • 文章 - 40
          • 評(píng)論 - 7
          • 引用 - 0

          導(dǎo)航

          常用鏈接

          留言簿(2)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          收藏夾

          home

          搜索

          •  

          最新隨筆

          最新評(píng)論

          閱讀排行榜

           
          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) 評(píng)論(0)  編輯  收藏 所屬分類: ajax
           
          Copyright © TNT Powered by: 博客園 模板提供:滬江博客
          主站蜘蛛池模板: 漳浦县| 清流县| 余姚市| 承德市| 新绛县| 江永县| 象山县| 西昌市| 景东| 汪清县| 枣庄市| 宾川县| 治多县| 集贤县| 萝北县| 鹤岗市| 枣庄市| 铁岭县| 定远县| 柏乡县| 临泽县| 宜良县| 定陶县| 阿巴嘎旗| 资源县| 安徽省| 锡林郭勒盟| 卫辉市| 彰武县| 自治县| 汶上县| 黄平县| 双辽市| 高州市| 泽州县| 贵溪市| 菏泽市| 兴宁市| 万源市| 阿坝| 武安市|