ทำไมใช้ได้แต่ IE Frifox,opera ใช้ไม่ได้ครับ

ทำไมใช้ได้แต่ IE Frifox,opera ใช้ไม่ได้ครับ
ลองลันกับIe ปกติครับแต่พอใช้ FriFox,operaมันไม่แสดงครับ
เกิดจากอะไรครับ

indicator.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="th-TH">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<SCRIPT LANGUAGE="javascript" SRC="./skin/indicator.js"></SCRIPT>
</head>
<body>
<h3>มีอะไรจะบอก</h3>

<button onclick="ajaxCall()">ลองกดดูสิ</button>
<div id="indicator"
    style="position:absolute; display:none; z-index:100;
         background-color:#ff0000; padding:3px;">


<img src="./image/indicator.gif" hspace="10" align="absmiddle">
กำลังโหลดข้อมูลครับ...

</div>
<p>
<div id="dv">&nbsp;</div>
</body>
</html>

skin/indicator.js

var ajax = null;
if(window.ActiveXObject) {       
    ajax = new ActiveXObject("Microsoft.XMLHTTP");   
}
else if(window.XMLHTTPRequest) {       
    ajax = new XMLHTTPRequest();   
}

function ajaxLoad(method, URL, data, displayId) {
    ajax.open(method, URL);
    ajax.onreadystatechange = function() {
         if(ajax.readyState==4 && ajax.status==200) {
            ajaxCallback(displayId, ajax.responseText);
        }
    }
       
    ajax.send(data);
   
}

function ajaxCallback(displayId, responseText){
    document.getElementById('indicator').style.display = 'none';

    var el = document.getElementById(displayId);
     el.innerHTML = responseText;
}

function ajaxCall() {
    var URL =
         "http://localhost/program/indicator/indicator.php";
    URL += "?dummy=" + (new Date()).getTime();
    ajaxLoad('get', URL, null, 'dv');
    document.getElementById('indicator').style.display = 'block';
}

26 เม.ย. 2552 5 3,927

กรณีเดียวกันเลย

กลับไปดูกระทู้ก่อนหน้าครับ
#1

ยังงงอยู่ครับขออธิบายใหม่ได้ใหมครับแล้วใช่กระทู้นี้หรือเปล่าครับ

ปัญหา AJAX ในการดึงหน้าที่มีตัวแปล PHP ครับ
#2

ajax.open(method, URL, true);
#3

ขอบคุณครับตอบสั้นๆแต่ได้ใจความครับ55+

#4

อันนี้ผมตอบ แบบ ที่ผมเป็นมานะ

ส่วนตัวผมก็เป็น เลยใช้แต่ IE อย่างเดียว (อยากช่วยตอบ)
#5
ความคิดเห็น
ไฟล์อัปโหลด ชนิด jpg, jpeg ขนาดไฟล์ไม่เกิน 1024
^