#207 ✓duplicate
Adam Nielsen

Ajax.Request IE responds with 1223 instead of 204

Reported by Adam Nielsen | July 7th, 2008 @ 09:14 AM | in 1.7

If you use Ajax.Request to send off a request (in my case a POST) to a server, and the server responds with HTTP 204 No Content (success but with no data returned) then under Firefox it works fine and the onSuccess method is called, but under Internet Explorer it fails with the response code 1223.

This is because there is a known issue in IE where it returns 1223 in response to a HTTP 204 code. I think a workaround should be implemented in Prototype to correctly call onSuccess (or on204) even under IE, so the behaviour is uniform across all browsers.

There seems to be some discussion on the list archives about 1223 also being returned in some error conditions, so I'm not sure if any trickery might be needed to correctly determine the situation.

This seems to be a known issue: http://www.mail-archive.com/jquery-en@googlegroups.com/msg13093.html

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket

Referenced by

Pages