는 모질라 NAD의 Crome 스에 대해 잘 작동하지만 IE 것이자바 스크립트 innerHTML이 IE에서 작동하지 않습니까?
var xmlhttp;
var strURL = "selectedu.php?selectward="+selectward;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange = function(){
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
if(xmlhttp.responseText=="NOER")
{
alert("Select ER Type");
}
else
{
document.getElementById(id).innerHTML=xmlhttp.responseText;
}
}
}
xmlhttp.open("GET",strURL,true);
xmlhttp.send();
더 많은 코드를 게시 할 수 있습니까? 가능한 경우 http://jsfiddle.net –
세부 사항을 수행 할 수 있습니다. tagName은 요소이며 XHR 호출을 만들고 작성하는 방법은 무엇입니까? – BiAiB
더 많은 코드를 보여줄 수 있습니까? – Oybek