Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XHR request is denoted as being cancelled although it seems to be successful [closed]

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

like image 638
Naftali Avatar asked Nov 28 '11 21:11

Naftali


People also ask

What is XHR type request?

XMLHttpRequest (XHR) is a JavaScript API to create AJAX requests. Its methods provide the ability to send network requests between the browser and a server.

How do I turn off my XHR?

Open Developer console. Open settings from kebab menu. Under Console, there is an option to disable logging XMLHttpRequest.


1 Answers

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

like image 126
vsevik Avatar answered Sep 29 '22 02:09

vsevik