你好我一直在試圖解決我與IE,其具有它的工作原理,並通過了所有與Chrome和Firefox的數據,但在IEHTTP:僅在IE中出現405錯誤。使用Ajax
$.ajaxSetup({
cache: false
});
var dataString = 'firstname=' + firstname + '&lastname=' + lastname + '&areacode=' + areacode + '&phonenumber=' + phonenumber + '&emailaddress=' + emailaddress + '&confirmemail=' + confirmemail + '&password=' + password + '&streetaddress=' + streetaddress + '&streetaddress2=' + streetaddress2 + '&city=' + city + '&state=' + state + '&zipcode=' + zipcode + '&month=' + month + '&day=' + day + '&year=' + year + '&services=' + services + '&agreement=' + agreement;
//alert(dataString);
// alert(services);
//var d = new Date();
$.ajax({
cache: false,
type: "POST",
url: "http://www.vectorcreditsolutions.com/js/process.php",
data: dataString,
// dataType: ($.browser.msie) ? "text" : "xml",
success: function(ret) {
window.location.href ="http://www.vectorcreditsolutions.com/thankyou.html";
}
});
return false;
});
弄亂了,我也得到一個HTTP 405問題與問題IE請任意輸入有助於 謝謝
您是否需要使用完整的URL?該腳本是否在不同的域上運行? –
Duplicate(http://stackoverflow.com/questions/6523162/jquery-ajax-get-returns-405-method-not-allowed)你不能使用標準ajax進行跨域請求 –
如果你切換方法要得到?另外,你使用的是什麼版本的IE? (IE6有幾個已知問題)。 –