I have the following javascript code...
function editShipment(){
var method = "PATCH";
var serializedData = $form.serialize();
$.ajax({
type: "PATCH",
url: Routing.generate('api_1_shipment_patch_shipment', {api_key: API_KEY, id:$('#caddress-shipmentID').val()}, true),
data: serializedData,
success: newShipmentSuccess,
error: newShipmentError
});
}
When I run this code the Chrome developer tools "network" tab shows a patch method with data being sent to the correct URL.
however my application never receives this data.
Is it possible that the network tab is somehow wrong and that my browser isn't actually sending the data.
I'm using the latest jQuery and the receiving application is a Symfony2 web app.
Thanks in advance,
M
EDIT: It also worth noting that i have a test case passing for this patch method within my symfony codebase. so thats why I'm looking at Javascript as the culprit.