Skip to main content

Bug Tracker

Side navigation

#5871 closed bug (invalid)

Opened January 19, 2010 10:39PM UTC

Closed January 20, 2010 02:14AM UTC

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');

Attachments (0)
Change History (1)

Changed January 20, 2010 02:14AM UTC by dmethvin comment:1

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!