0
我有錯誤「對象不支持此屬性或方法」在Internet Explorer 7對象不支持此屬性或方法如果使用了Ajax
function emrooz_sending_ajax(){
textarea_data = $("#emrooztext").val();
textarea_data = jQuery.trim(textarea_data);
num_slider_today = $("#num_slider_today").val();
if(textarea_data == "" || textarea_data == "خلاصه امروز شما در یک تا چند جمله..."){
return alert("لطفا فرم را کامل کنید");
}else{
if(!window.ActiveXObject){
try{
xhr = new XMLHttpRequest();
}catch(e){
xhr = false;
}
}else if(window.ActiveXObject){
try{
xhr = new ActiveXObject("Msxml2.XMLHTTP");
}catch(e){
try{
xhr = new ActiveXObject("Microsoft.XMLHTTP");
}catch(e){
xhr = false;
}
}
}
//...
在第5行>>
if(textarea_data == "" || textarea_data == "خلاصه امروز شما در یک تا چند جمله...")
注意:當一個If條件添加在這個代碼中時,也會添加一個錯誤!
感謝