jQuery Flickr feed not working in IE6 and IE7

Hi all,

I have a little flickr JSON call, but nothing is being returned in IE6 and IE7.
I can’t figure out why it’s not cooperating.
Any ideas?

    $.ajaxSetup({ cache: true });
	$.getJSON("http://api.flickr.com/services/feeds/groups_pool.gne?id=32142572@N00&lang=en-us&format=json&jsoncallback=?", function(data){
		$.each(data.items, function(i,item){
		i = i++;
		$("<img/>").attr("src", item.media.m).appendTo("#flickrImages")
			.wrap("<li><a target='_blank' href='" + item.link + "'></a></li>");
			$("ul#flickrImages li a img").each(function() {
                   var smallThumb = $(this).attr("src").replace(/_m.jpg$/i,'_s.jpg');
                   $(this).attr("src", smallThumb);
			if ( i == 5 ) return false;


<div id="flickrFeed">
	<img src="images/flickrFeed.gif" alt="Flickr Feed" />
	<ul id="flickrImages"></ul>

Thanks in advance

Got it working, but I had to place it with in the html doc. I’d rather have it within an external doc. Shouldn’t document.ready perform the same within HTML or in an external file?