0
function showEmp(){
if(validate())
{
for(var i=0; i < document.employee.puid.length; i++){
if(document.employee.puid[i].checked){
var emp_value = document.employee.puid[i].value;
}
}
xmlHttp=GetXmlHttpObject();
if(xmlHttp==null){
alert ("Browser does not support HTTP Request")
return
}
var url="getPatient.jsp"
url=url+"?emp_id="+emp_value;
xmlHttp.onreadystatechange=stateChanged
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
}
function stateChanged()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
var showdata = xmlHttp.responseText;
alert(showdata)
var strar = trim(showdata).split(":");
if(strar.length>0)
{
window.opener.location.reload();
window.location.reload();
opener.document.getElementById("puid").value=strar[1];
opener.document.getElementById("fname").value=strar[2];
window.close();
}
}
}
我無法在父窗口字段中顯示值,在此 var showdata = xmlHttp.responseText; alert(showdata) 這裏即使我只是保持警惕showdata,但它只顯示空的警報框可以任何一個幫助我,!!在父窗口中顯示彈出窗口輸入文本值?