I've got a jQuery function that's posting to the server using $.ajax and it works fine in IE, Chrome and Safari, but in Firefox, no POST values are being received by the server. When i query the form collection (using classic ASP), i get undefined
for all the values
$.ajax({
type: 'POST',
url: url,
dataType: "text",
data: { value1: true, value2: false },
success: function(html) {
// removed for clarity
},
error: function(xhr, ajaxOptions, thrownError) {
// removed for clarity
}
It's definitely hitting the server, and when i look at the values in FireBug, it shows exactly what i would expect for the POST, but somewhere, the data is going missing
To make matters more confusing, which i run it on IIS locally, it works fine in all browsers.
It's not doing a cross domain post as the url is generated depending on which domain it's running on, so i've not left any hard coded values in that could be causing the problem
I guess it's somthing simple i've missed, but for the life of me, i can't see what