Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6759645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:58:13+00:00 2026-05-26T13:58:13+00:00

$(document).ready(function() { $.getJSON(http://api.flickr.com/services/feeds/groups_pool.gne?id=89254480@N00&\ lang=en-us&format=json&jsoncallback=?, getJSONimages); function getJSONimages(data) { var htmlString = ; $.each(data.items, function(i,item){

  • 0
$(document).ready(function() {

$.getJSON("http://api.flickr.com/services/feeds/groups_pool.gne?id=89254480@N00&\
lang=en-us&format=json&jsoncallback=?", getJSONimages);

function getJSONimages(data) {
var htmlString = "";
$.each(data.items, function(i,item){
var sourceSquare = (item.media.m).replace("_m.jpg", "_s.jpg");
htmlString += '<img src="' + sourceSquare + '" />';
});
$('#slideshow').html(htmlString);
}
})

The above gets the images in the format I need them for the slideshow:

<div id="slideshow"><img src="url"></div>

And the code below is the slideshow which works good on its own:

$('#slideshow').slideshow({
timeout: 2000,
type: 'random',
pauselink: 'sequence',
fadetime: 2000
});

Of course, there is another 2kb js file loaded, part of the slideshow, and the
jQuery library loaded from Google.

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?

Both in the same tags doesn’t work, separately doesn’t work, both of
them in the header.

Any ideas please? Thank you.

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.. http://demetriad.co.uk/flickr-test/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:58:14+00:00Added an answer on May 26, 2026 at 1:58 pm

    I think the problem here is that you’re running the slideshow script when the HTML is empty. That script will set up all of the images within the target element to be part of the slideshow, and there are no images until the ajax call has completed.

    You could maybe try moving the code that starts the slideshow to the end of the ajax callback

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a webservice returning jsonp format. here's the code: $(document).ready(function(){ $.getJSON(http://api.tubeupdates.com/?method=get.status&lines=central,victoria&return=name&jsonp=?, function (result){
I am performing the following AJAX call: $(document).ready(function() { $.getJSON('https://sendgrid.com/api/user.stats.json', { 'api_user': 'me@mydomain.com', 'api_key':
$(document).ready(function(){ $(a[href*='http://']:not([href*='+location.hostname+'])).attr(target,_blank); $(a[target!='_blank'][target!='_top']).click(function(){ $(#actualcontent).load($(this).attr(href)); window.location.hash=$(this).attr(href); return false; }); }); So I have this code
I cannot seem to make this simple code work: <script type=text/javascript> $(document).ready(function(){ $.getJSON('http://maps.google.com/maps/api/geocode/json?address=cebu&sensor=false&region=ph', function(results)
function load_result() { $.getJSON( http://somesite.com/loadresult.php, function(data) { if( data == undefined || data ==
During a document.ready, I call the load_result function outlined below: function load_result() { $.getJSON(
$.getJSON(http://192.168.1.9:8983/solr/db/select/?wt=json&&start=0&rows=100&q=+query+&json.wrf=?, function(result){ //$.each(result.response.docs, function(result){ if(result.response.numFound==0) { $.ajax({ url: http://192.168.1.9:8983/solr/db/select/?wt=json&&start=0&rows=100&q=+query+&spellcheck=true&json.wrf=?, async:false, success: function(result){ $.each(result.spellcheck.suggestions, function(i,item){
$(document).ready(function() { $(span.link).mouseover(function(e){ $(this.children).css(display,inline); }); }); I'm not a javascript expert, but I've cobbled
$(document).ready(function(){ $(.txtDate).datepicker({ showOn: both, buttonImage: library/ui/datepicker/img/calendar2.gif, dateFormat: yy/mm/dd, buttonImageOnly: true }); //added this checkbox
$(document).ready(function() { function countChecked() { var n = $(input:checked).length; $(div).text(n + (n <= 1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.