TNT blog  
日历
<2024年6月>
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456
统计
  • 随笔 - 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 阅读(300) 评论(0)  编辑  收藏 所属分类: ajax

只有注册用户登录后才能发表评论。


网站导航:
 
 
Copyright © TNT Powered by: 博客园 模板提供:沪江博客