Bug Tracker

Opened 11 years ago

Closed 10 years ago

Last modified 7 years ago

#3436 closed bug (invalid)

IE6 freezes when receiving certain JSONP AJAX responses

Reported by: anschoewe Owned by:
Priority: major Milestone: 1.3
Component: ajax Version: 1.2.6
Keywords: Cc:
Blocked by: Blocking:

Description

I've encountered a problem when retrieving a JSONP response from a server in a different domain using IE6.

When I make the same AJAX call using JSONP to a server in the same domain as the web page, all goes well in all browsers (including IE6). However, when I make calls between domains (XSS) using JSONP, Internet Explorer 6 locks up. Specifically, the CPU spikes to 100% and the 'success' callback is never reached. The only time I have had success going between domains is when the response is very short (less than 150 bytes typically). The length of the response seems important.

I'm using jQuery 1.2.6. I've tried the $.getJSON() method and the $.ajax(dataType: "jsonp") method without success. This works beautifully in FF3 and IE7. I haven't been able to find anyone else with a similar problem. I thought this type of functionality was fully supported by jQuery in IE6.

Attached is the code for the HTML page making the AJAX call. Make a local copy of this file (and jquery library) and give it a shot using IE6. For me, it always causes the CPU to spike with no response rendered.

Attachments (1)

TestResults.html (1.1 KB) - added by anschoewe 11 years ago.
An example file for use for testing. Make a local copy and try it.

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by anschoewe

Attachment: TestResults.html added

An example file for use for testing. Make a local copy and try it.

comment:1 Changed 11 years ago by flesler

Component: unfilledajax
Owner: flesler deleted

comment:2 Changed 10 years ago by brandon

Resolution: duplicate
Status: newclosed

Consolidating this into #4378

comment:3 Changed 10 years ago by brandon

Resolution: duplicate
Status: closedreopened

comment:4 Changed 10 years ago by brandon

Resolution: invalid
Status: reopenedclosed

This is because the response from the server doesn't seem to be valid. See also this same issue asked on Stackoverflow: http://stackoverflow.com/questions/129157/jquery-jsonp-problem-in-ie6

Note: See TracTickets for help on using tickets.