Bug Tracker

Opened 13 years ago

Closed 13 years ago

#5871 closed bug (invalid)

jQuery.get in IE7 fails with dataType json

Reported by: cwinkelmann Owned by:
Priority: major Milestone: 1.4
Component: ajax Version: 1.4
Keywords: Cc:
Blocked by: Blocking:


In jQuery 1.4 when running a get call with dataType of json fails to define the data being returned in the callback function. When running fiddler I received a json object that looks similar to the following:

[{"id":"1593","name":"Alexis Watson","picture":"\/images_ccb\/avatar-default.gif","phone":"(555) 555-5555 ","spouse":"Mindy"},

{"id":"1988","name":"Ben Willians","picture":"\/images_ccb\/avatar-default.gif","phone":"(555) 555-5555 ","spouse":""}]

However, when debugging the callback results they are undefined. This works within the last 1.3 release. I am using google apis to include the jquery src for 1.3 and 1.4. This is working in Safari, Firefox, Chrome, and IE8 with 1.4 though.

The equivalent ajax call looks like the following:

$.get(url, {}, callbackFunction, 'json');

Change History (1)

comment:1 Changed 13 years ago by dmethvin

Resolution: invalid
Status: newclosed

Can you attach a test case? The JSON shown there seems fine. It seems like 1.4 should have thrown an "invalid JSON" exception so it would be good to see more detail. Thanks!

Note: See TracTickets for help on using tickets.