Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery slideshow issue with a populated div from a JSON feed
    primarykey
    data
    text
    <pre><code>$(document).ready(function() { $.getJSON("http://api.flickr.com/services/feeds/groups_pool.gne?id=89254480@N00&amp;\ lang=en-us&amp;format=json&amp;jsoncallback=?", getJSONimages); function getJSONimages(data) { var htmlString = ""; $.each(data.items, function(i,item){ var sourceSquare = (item.media.m).replace("_m.jpg", "_s.jpg"); htmlString += '&lt;img src="' + sourceSquare + '" /&gt;'; }); $('#slideshow').html(htmlString); } }) </code></pre> <p>The above gets the images in the format I need them for the slideshow:</p> <pre><code>&lt;div id="slideshow"&gt;&lt;img src="url"&gt;&lt;/div&gt; </code></pre> <p>And the code below is the slideshow which works good on its own:</p> <pre><code>$('#slideshow').slideshow({ timeout: 2000, type: 'random', pauselink: 'sequence', fadetime: 2000 }); </code></pre> <p>Of course, there is another 2kb js file loaded, part of the slideshow, and the jQuery library loaded from Google.</p> <p>I am a begginer in JavaScript and I simply don't get it, it doesn't work, I am guessing I have to run the first code to get the img tags in the #images div and then run the js code for the slideshow.. but how do I do that?</p> <p>Both in the same tags doesn't work, separately doesn't work, both of them in the header.</p> <p>Any ideas please? Thank you.</p> <p>P.S. I didn't find any rules regarding this and I hope I do not break the rules, I really like this community as I have learnt a lot here. Here's the link.. <a href="http://demetriad.co.uk/flickr-test/" rel="nofollow">http://demetriad.co.uk/flickr-test/</a></p>
    singulars
    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.
    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