成果庫修改
要求主題列表隨成果類型改變而改變
網上查詢資料後開工
概要代碼如下
JS
//動態獲取主題數據
function getzts(){
parentId = document
if(parentId!=""){
dwrMethod
}else{
//清空主題Table的數據
var t=document
var length= t
if(length!=
for(var i=length
{
t
}
}
var r = t
var c = r
c
document
}
}
function callback
var t=document
var length= t
if(length!=
for(var i=length
{
t
}
}
if(provinces
for (var i =
//tr
if(i%
var r = t
}
//td
var c = r
c
}
}else{
var r = t
var c = r
c
}
document
}
html
<tr>
<td class="add_tit">成果類型</td>
<td>
<s:select id="bselect
<label class="note
</td>
</tr>
[html]
<tr>
<td class="add_tit">主題</td>
<td id="table
<table id="zhutiTable" border="
<tr>
<td style="color: red;">注:請先選擇成果類型</td>
</tr>
</table>
</td>
</tr>
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/19848.html