Modify ↓
Ticket #3466 (closed bug: duplicate)
IE6 & 7 throw an error during jsonp call using $.getJSON
| Reported by: | tpaegle | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.3 |
| Component: | ajax | Version: | 1.2.6 |
| Keywords: | $.getJSON, jsonp, JSON, IE | Cc: | |
| Blocking: | Blocked by: |
Description
On retrieving JSON data using $.getJSON(), IE7 was throwing an error "object doesn't support this property or method"
head.removeChild( script );
changed code to :
try{
head.removeChild( script );
} catch(e){ }
to get rid of the error. http://groups.google.com/group/jquery-en/msg/2315ac4e0aee5d45?pli=1
John Resig's response was: When you wrap the extra try catch around the removal does the element actually get removed from the document? Are there extra <script> elements left in the page?
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Is this the same bug as Ticket #2923 and 3283?