Ticket #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: | ||
| Blocking: | Blocked by: |
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
Change History
Changed 5 years ago by anschoewe
-
attachment
TestResults.html
added
comment:1 Changed 5 years ago by flesler
- Owner flesler deleted
- Component changed from unfilled to ajax
comment:2 Changed 4 years ago by brandon
- Status changed from new to closed
- Resolution set to duplicate
Consolidating this into #4378
comment:3 Changed 4 years ago by brandon
- Status changed from closed to reopened
- Resolution duplicate deleted
comment:4 Changed 4 years ago by brandon
- Status changed from reopened to closed
- Resolution set to invalid
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

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