Ping 2013-01-22
在页面调用方式:
1)<script language="javascript" src="<%=request.getContextPath()%>/js/xmlcommon.js"></script>
2)<select id="departmentCode" name="departmentCode" onchange="departmentCodeChange(this.value);">
<jsp:include page="../common/tag_select_department.jsp">
<jsp:param name="hasOptioanal" value="1" />
</jsp:include>
</select>
3)<script languge="javascript">
function departmentCodeChange(departmentCode){
url = "calib0GetDecisionRule.do?departmentCode="+departmentCode;
handlerRequestURLXML( url, setFields );
}
function setFields(request) {
if(document.getElementById("calibRuleId").length > 0){
document.getElementById("calibRuleId").length = 0;
}
setElementList(request);
}
</script>