IE7 XmlHttpRequest parseerror problem

Posted by cyx at September 24th, 2009

Have you ever run into the problem in Rails Metal where AJAX Requests just choke? When you try and debug the error response, it would stupidly reply “parseerror”.

After a long fought war with the browser that they call IE7, I discovered that this happens due to the Content-Type response header. I played around with different responses, and apparently returning the appropriate responses for my case (which were text/plain and application/json) resulted in IE choking.

THE SOLUTION: I switched to returning a content-type with application/octet-stream, and voila, everything worked as advertised. I hope this doesn’t happen to anyone else, although I’m pretty sure it will.

Posted in Uncategorized| No Comments | 

Rails 2.3.2 Object not Missing Constant Xxx

Posted by cyx at August 19th, 2009

Posted in Uncategorized| No Comments | 

Acts as Solr 3x Performance Boost on Tests

Posted by cyx at June 8th, 2009

Posted in Uncategorized| No Comments | 

PHRUG Presentation

Posted by cyx at May 27th, 2009

Posted in presentations, ruby19| No Comments | 

Waiting for Shoulda to work with Rails 2.3

Posted by cyx at April 27th, 2009

Posted in Uncategorized| No Comments | 

Switching to Kestrel (from Starling)

Posted by cyx at April 27th, 2009

Posted in ruby19| No Comments | 

AWS-S3 now Ruby 1.9 compatible

Posted by cyx at April 23rd, 2009

Posted in ruby19| No Comments | 

The long and winding road to ruby 1.9

Posted by cyx at April 15th, 2009

Posted in ruby19| No Comments | 

Widgets FTW!

Posted by cyx at April 18th, 2008

Posted in Uncategorized| No Comments | 

Mac OS X Leopard Dock Crashes

Posted by cyx at March 7th, 2008

Posted in macosx| 1 Comment | 

Next Postings »