0
我一直在看這裏的一些帖子有關的帖子我現在寫作,但我無法解決它。 問題是,我有一個從位於我的服務器一個PHP需要一些數據並撥打電話,在未來的方式:Ajax and IE8 Issue
function login(tipo) {
var xml = null;
try{
// Firefox, Opera 8.0+, Safari
xml=new XMLHttpRequest();
}catch (e){
// Internet Explorer
try{
xml=new ActiveXObject("Msxml2.XMLHTTP");
}catch (e){
try{
xml=new ActiveXObject("Microsoft.XMLHTTP");
}catch (e){
alert("Your browser does not support AJAX!");
return false;
}
}
}
xml.open("POST", "https://www.domoindal.com/mainSite/es/checklogin.php", false);
xml.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xml.send("user="+document.loginForm.user.value+"&pass="+document.loginForm.pass.value);
if(xml.status == 404) alert("Url no valida");
var respuesta = xml.responseText.split("#", 3);
.....這個代碼工作正常在Safari,Chrome和Firefox,唯一的例外是IE8。它在responseText行(最後一行)中出現錯誤。
與IE8另一個類似的問題是,我想改變一個div的形象和我用下面的代碼:
function boton_1() {
$("#contenedor_tarjetas").html('<img src="../images/VISA.png" width="250" height="40" />');
$("#cardID").value = 1;
return true;
}
....它給了我一個錯誤第二行。這個瀏覽器會發生什麼?好像它需要一個分離的程序。 我檢查了其他帖子的所有內容和建議,但沒有成功。
有什麼遺漏嗎?怎麼了?
如果有人能幫助我,我會很感激。
在此先感謝。