Bug Tracker

Modify

Ticket #3466 (closed bug: duplicate)

Opened 5 years ago

Last modified 4 years ago

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

comment:1 Changed 5 years ago by rberger

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

comment:2 Changed 4 years ago by brandon

  • Status changed from new to closed
  • Resolution set to duplicate

Consolidating this into #4378

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.