On Oct 10, 9:16 am, Jim <stapleton...@gmail.com> wrote:
> On Oct 9, 8:50 pm, MorningZ <morni...@gmail.com> wrote:
>
> > it's supposed to be "application/json", not "text/json"..... set the
> > content type properly in your server side code and you'll be fine...
> > "text/plain" will work as well
>
> After some further searching, I found this section of code in the
> jQuery library. If I modify the accepts:{... json: ...} line to:
> 'json: "application/json, text/javascript,text/json",' that should
> work as well, right? (Sorry, won't actually get to test it until
> Monday, and was hoping to get some idea of the feasibility of the
> route before then).
>
> jQuery.extend({
> //...
> ajaxSettings: {
> //...
> accepts: {
> xml: "application/xml, text/xml",
> html: "text/html",
> script: "text/javascript, application/javascript",
> json: "application/json, text/javascript",
> text: "text/plain",
> _default: "*/*"
> }
> },
This change failed to remedy the problem.
-Jim Stapleton