不刷新,通过javascript获取数据,!
<script language="javascript" for="RE_REPAIR_SITE" event="onblur">
{
return GetHore();
}
]]>
</script>
<script>
function GetHore()
{
if(document.all("RE_REPAIR_SITE").value != "")
{
var xml = "<?xml version='1.0' encoding='UTF-8'?>"+
"<Ebanswers>"+
"<SITE>"+
"<SITE_NO>" + document.all("RE_REPAIR_SITE").value + "</SITE_NO>"+
"</SITE>"+
"</Ebanswers>";
var outHtml = XmlHttpPost("../Library/WebInitPage.aspx?Source=GetHore", xml);
//alert(outHtml);
if(outHtml != "")
{
try{
var partHore = Number(outHtml.substr(0,outHtml.indexOf(",")));
if(partHore != 0 )
{
document.all("RE_PART_FEE").value= partHore
}
var feeHore = Number(outHtml.substr(outHtml.indexOf(",")+1));
if(feeHore != 0 )
{
document.all.RE_FEE.value = feeHore
}
}
catch(e)
{
}
}
}
}
{
return GetHore();
}
]]>
</script>
<script>
function GetHore()
{
if(document.all("RE_REPAIR_SITE").value != "")
{
var xml = "<?xml version='1.0' encoding='UTF-8'?>"+
"<Ebanswers>"+
"<SITE>"+
"<SITE_NO>" + document.all("RE_REPAIR_SITE").value + "</SITE_NO>"+
"</SITE>"+
"</Ebanswers>";
var outHtml = XmlHttpPost("../Library/WebInitPage.aspx?Source=GetHore", xml);
//alert(outHtml);
if(outHtml != "")
{
try{
var partHore = Number(outHtml.substr(0,outHtml.indexOf(",")));
if(partHore != 0 )
{
document.all("RE_PART_FEE").value= partHore
}
var feeHore = Number(outHtml.substr(outHtml.indexOf(",")+1));
if(feeHore != 0 )
{
document.all.RE_FEE.value = feeHore
}
}
catch(e)
{
}
}
}
}