HTTP:仅在IE中出现405错误。使用Ajax

时间:2012-01-24 19:32:46

标签: php jquery ajax http

您好我一直在尝试修复我在IE上遇到的问题它的工作原理并通过Chrome和Firefox传递所有数据但是与IE混淆

 $.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;
     });

我得到IE的http 405问题,请输入任何帮助 谢谢

1 个答案:

答案 0 :(得分:3)

你的param格式似乎不寻常,我会避免使用&邮寄请求

试试这个

   data: { 
        'firstname': firstname, 
        'lastname': lastname,
         .....
    }