russellgoldenberg/Hollow_healthapi — pull request #1 by QuantumConcepts (2013-02-01 19:38:09+00:00)
Title: Fixed 2 Issues

Hi Russell, this is Josh from S-3/SSS/HealthIndicators.gov. I've forked your repo and commited a couple of changes - have a look at my commits to see what I changed. In the first commit I made some extra changes just to help with debugging. The main changes were:

1. When making an ajax call with jQuery, make sure to set the "accept" option (not "accepts").
2. When sending JSON data in an ajax call with jQuery, you have to turn the JSON into a string first (JSON.stringify()) otherwise jQuery, for some reason, assumes you want to send www-form-url-encoded data.

Hope this helps! It works fine for me in Chrome. Let me know if you run into any other issues.