Note that there are some explanatory texts on larger screens.

plurals
  1. POJQuery / Flickr API issue with get Photo set
    primarykey
    data
    text
    <p>I have been trying to put together a photo albumn system that is managed via Flickr, I have been spending the past day or so playing around with the Flickr API and have the following code, but it just doesn't return the expected HTML. insetad I get an error in my browser for the line above ($('#images').html(theHtml);)</p> <pre><code> &lt;script type="text/javascript"&gt; $(document).ready(function(){ $.getJSON('http://api.flickr.com/services/rest/?&amp;method=flickr.photosets.getPhotos&amp;api_key=xxxxxxxxxxxxxxxxxxxxxxxxxxx&amp;photoset_id=xxxxxxxxxxxxxxxxxxxx=&amp;format=json&amp;jsoncallback=?', displayImages); function displayImages(data) { var photosetID = ""; var title = ""; var theHtml = ""; $.each(data.photosets.photoset, function(i,set){ photosetID = set.id; title = set.title._content; ids.push(photosetID); titles.push(title); var sourceSquare = (set.media.m).replace("_m.jp g", "_s.jp g"); theHtml+= '&lt;li&gt;&lt;a href="'+set.link+'" target="_blank"&gt;'; theHtml+= '&lt;img title="'+set.title+'" src="'+sourceSquare+'" alt="'+set.title+'" /&gt;'; theHtml+= '&lt;/a&gt;&lt;/li&gt;'; }); $('#images').html(theHtml); }); }); &lt;/script&gt; </code></pre> <p>Also I have seen examples using something like this:</p> <pre><code>$.getJSON("http://api.flickr.com/services/feeds/groups_pool.gne?id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx&amp;lang=en-us&amp;format=json&amp;jsoncallback=?", displayImages); </code></pre> <p>BUt was not sure what exactly a group id is, is that the same as the set ID? How does Flickr know who I am in example two as I don't see any API being passed.</p> <p>My preference would be to get the first example working as that is what I have been working on, but any advice/example would be apprieciated</p> <p>cheers</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload