[Dojo-interest] xhrGet status code 204 on IE6

omer katz omer at cinex.co.il
Thu Apr 8 17:18:17 EDT 2010


Exactly that.
Jared, thanks for the reminder.
Stupid microsoft :/

2010/4/8 Eric Pasquier <epasquier at bepconcept.com>

> Strange behavior, also present on IE7. I now think its safer to use 200 and
> I am going to changed it on all my projects.
> Thanks for the link and help.
> Eric.
>
> ----- Original Message -----
> From: "Jared Jurkiewicz" <jared.jurkiewicz at gmail.com>
> To: <dojo-interest at mail.dojotoolkit.org>
> Sent: Thursday, April 08, 2010 4:53 PM
> Subject: Re: [Dojo-interest] xhrGet status code 204 on IE6
>
>
> >
> https://prototype.lighthouseapp.com/projects/8886/tickets/129-ie-mangles-http-response-status-code-204-to-1223
> >
> > IE doesn't handle response code 204 right.   The problem is 1223 is a
> > generic error code which *can* mean 204, it can also mean other
> > things.  So it's not entirely safe to assume 1223 on IE == 204.
> >
> > -- Jared
> >
> >
> > On Thu, Apr 8, 2010 at 10:40 AM, Eric Pasquier <epasquier at bepconcept.com
> >
> > wrote:
> >> I am using Zend Framework.
> >> I am volontary returning status 204, because I am using GET to update
> the
> >> server, and have nothing to return.
> >> I just changed all 204 to 200 ...
> >>
> >>
> >> ----- Original Message -----
> >> From: "omer katz" <omer at cinex.co.il>
> >> To: <dojo-interest at mail.dojotoolkit.org>
> >> Sent: Thursday, April 08, 2010 4:35 PM
> >> Subject: Re: [Dojo-interest] xhrGet status code 204 on IE6
> >>
> >>
> >> I recall something about this... You should explicitly return status
> >> 200, can't remember the reason. Try to google it and also debug your
> >> php code. What framework are you using
> >>
> >> On Thursday, April 8, 2010, Eric Pasquier <epasquier at bepconcept.com>
> >> wrote:
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> Hi,
> >>>
> >>> My Php application is returning Http 204 status
> >>> code when I use xhrGet (see code below).
> >>> On IE6 only, I am getting the following message
> >>> :
> >>>
> >>> Error when updating data
> >>> to the server :[object Error] [object Object]
> >>>
> >>> If I return 200 status code, it works. It also works on IE7, IE8 or FF.
> >>>
> >>> Am I doing something wrong ?
> >>> Thanks,
> >>> Eric.
> >>>
> >>>
> >>> function updateServerError(data,
> >>> ioArgs)
> >>> {
> >>> alert("Error when updating data to the server :" + data +
> >>> " " + ioArgs);
> >>> }
> >>>
> >>> function
> >>> updateServer(Purl)
> >>> {
> >>>
> >>> dojo.xhrGet({
> >>> url:
> >>> Purl,
> >>> error:
> >>> updateServerError,
> >>> timeout: 15000,
> >>> sync: true
> >>> });
> >>> }
> >>>
> >>>
> >>>
> >> _______________________________________________
> >> FAQ: http://dojotoolkit.org/support/faq
> >> Book: http://docs.dojocampus.org
> >> Dojo-interest at mail.dojotoolkit.org
> >> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
> >>
> >> _______________________________________________
> >> FAQ: http://dojotoolkit.org/support/faq
> >> Book: http://docs.dojocampus.org
> >> Dojo-interest at mail.dojotoolkit.org
> >> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
> >>
> > _______________________________________________
> > FAQ: http://dojotoolkit.org/support/faq
> > Book: http://docs.dojocampus.org
> > Dojo-interest at mail.dojotoolkit.org
> > http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
> >
>
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://docs.dojocampus.org
> Dojo-interest at mail.dojotoolkit.org
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20100409/de7d8974/attachment.htm 


More information about the Dojo-interest mailing list