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: 博客園 模板提供:滬江博客
          主站蜘蛛池模板: 同心县| 连城县| 高碑店市| 新邵县| 东阿县| 手机| 奈曼旗| 厦门市| 芮城县| 孙吴县| 沁阳市| 金昌市| 绍兴县| 隆回县| 民权县| 盐亭县| 钟祥市| 昌图县| 崇礼县| 彝良县| 古蔺县| 吉林省| 凤翔县| 临安市| 乐都县| 涟源市| 赤城县| 万盛区| 宁国市| 石棉县| 互助| 甘南县| 册亨县| 郎溪县| 卫辉市| 车险| 综艺| 秀山| 庆阳市| 肇源县| 历史|