Question

This is not really an issue, because the code works, but I am just curious as to why it happens.

I have the following jQuery code for an ajax post:

$.post('./add_fee_row/<?php echo $date; ?>',post, function(data){ ... });

It all works fine and dandy.

However in the Chrome Console it says: what is going on here?

Why does it say cancelled?

Everything happened as if the post was successful. Why does it say that?

(the php server code is available if needed)

I am using Google Chrome version: 17.0.942.0

Was it helpful?

Solution

There was a bug in Chrome DevTools, it is already fixed: http://code.google.com/p/chromium/issues/detail?id=104920

OTHER TIPS

it may happen when Chrome sees that the actual data doesn’t match the headers.

If you return your answer with header type added, it shouldnt say canceled (Content-type: text/plain. for example)

You can check them by looking Event tabs - response headers.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top