function setValue(value)
{
deleteRow();
document.getElementById("mem_role_attid").value = "";
document.forms[0].mem_roleid.value = value.split('*')[0] ;
document.forms[0].rolename.value = value.split('*')[1];
var xmlHTTP=new ActiveXObject("Microsoft.XMLHTTP");
xmlHTTP.Open("POST","<%=request.getContextPath()%>/jsp/member/getExtvalue.jsp?mem_roleid="+document.forms[0].mem_roleid.value);
xmlHTTP.send("<extvalue attr_name=dd></extvalues>");
var template=new ActiveXObject("MSXML.DOMDocument");
alert()
template.loadXML(xmlHTTP.responseText);
template.οnlοad=test(template);
}
function test(template){
var client=template.documentElement;
for(var i=0;i<client.childNodes.length;i++){
var attr_name=client.childNodes[i].getAttribute("attr_name");
var complexvalue=client.childNodes[i].getAttribute("complexvalue");
var datatype=client.childNodes[i].getAttribute("datatype");
var isnull=client.childNodes[i].getAttribute("isnull");
addRow(attr_name,complexvalue,datatype,isnull);
}
}
{
deleteRow();
document.getElementById("mem_role_attid").value = "";
document.forms[0].mem_roleid.value = value.split('*')[0] ;
document.forms[0].rolename.value = value.split('*')[1];
var xmlHTTP=new ActiveXObject("Microsoft.XMLHTTP");
xmlHTTP.Open("POST","<%=request.getContextPath()%>/jsp/member/getExtvalue.jsp?mem_roleid="+document.forms[0].mem_roleid.value);
xmlHTTP.send("<extvalue attr_name=dd></extvalues>");
var template=new ActiveXObject("MSXML.DOMDocument");
alert()
template.loadXML(xmlHTTP.responseText);
template.οnlοad=test(template);
}
function test(template){
var client=template.documentElement;
for(var i=0;i<client.childNodes.length;i++){
var attr_name=client.childNodes[i].getAttribute("attr_name");
var complexvalue=client.childNodes[i].getAttribute("complexvalue");
var datatype=client.childNodes[i].getAttribute("datatype");
var isnull=client.childNodes[i].getAttribute("isnull");
addRow(attr_name,complexvalue,datatype,isnull);
}
}