Reputation: 85
Hello I have been trying to fix an issue I'm having with IE It works and passes all the data with Chrome and Firefox but messes up with 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;
});
and i get an http 405 issue with IE please any input would help thank you
Upvotes: 0
Views: 629
Reputation: 2837
Your param format seems unusual, I would avoid using & for a post request
Try this
data: {
'firstname': firstname,
'lastname': lastname,
.....
}
Upvotes: 3