TNT blog  
日历
<2025年4月>
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910
统计
  • 随笔 - 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 阅读(307) 评论(0)  编辑  收藏 所属分类: ajax
 
Copyright © TNT Powered by: 博客园 模板提供:沪江博客