문제

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

도움이 되었습니까?

해결책

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

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top