Skip to main content

Bug Tracker

Side navigation

#3466 closed bug (duplicate)

Opened October 10, 2008 03:19AM UTC

Closed March 18, 2009 10:23PM UTC

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:
Blocked by: Blocking:
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?

Attachments (0)
Change History (2)

Changed October 10, 2008 06:12AM UTC by rberger comment:1

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

Changed March 18, 2009 10:23PM UTC by brandon comment:2

resolution: → duplicate
status: newclosed

Consolidating this into #4378