[jQuery] Re: How do I use getjson to make two attribute pairs

2009-01-14 Thread desbest
Thx. There was a bug in the extra line you gave me which I corrected. Below is the full code you'll need for future reference: http://codedumper.com/flickr-api-using-jquery-json On Dec 12 2008, 4:58 pm, ricardobeat wrote: > According to the API the URL is in item.link, so you just need to wra

[jQuery] Re: How do I use getjson to make two attribute pairs

2008-12-12 Thread ricardobeat
According to the API the URL is in item.link, so you just need to wrap the image in an anchor: function(data){ $.each(data.items, function(i,item){ $("").attr("src", item.media.m) .appendTo("#images") .wrap('"); if ( i == 4 ) retur