SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Sep 2006
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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?

    Code:
      $(document).ready(function(){
        $.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;
    		});
    
    	});
    Code:
    <div id="flickrFeed">
    	<img src="images/flickrFeed.gif" alt="Flickr Feed" />
    	<ul id="flickrImages"></ul>
    </div>
    Thanks in advance

  2. #2
    SitePoint Zealot
    Join Date
    Sep 2006
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •