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?
Is this the same bug as Ticket #2923 and 3283?