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

  • Home
  • SEARCH
  • 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 6991237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:28:16+00:00 2026-05-27T19:28:16+00:00

I wrote code in which .getJSON api from jquery is used to fetch images

  • 0

I wrote code in which .getJSON api from jquery is used to fetch images from flickr public api. Please see this link. I have made each of the images to slide after each request gets finished. Now, I want the first set of image to slide downward and then following sets to slide up first and then replaced by images from ajax request maintaining the same animation as used for the first set of images. I think a very little modification is enough. I thank you for your comment and suggestion before hand.

  • 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-27T19:28:17+00:00Added an answer on May 27, 2026 at 7:28 pm

    Is this what you had in mind?

    getFlickr();
    setInterval(getFlickr, 20000);
    
    function getFlickr() {
        $.getJSON('http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?', {
            'format': 'json'
        }, function(data) {
            if ($('p').length < 1) {
                addPiecePiece('#main',true,null);
            }
            else {
                $('.flickr').each(function(i) {
                    $(this).delay(4000*i).slideUp(2000,function(){
                          addPiecePiece($(this),false,i);
                          $(this).remove();
                    });
                });
    
    
            }
    
            function addPiecePiece(element,aoa,index) {
                $.each(data.items, function(key, value) {
                    if(index == null || index == key){
                       title = value.title;
                       description = value.description;
                       photo = value.media.m;
                       html = $('<p class="flickr"></p>').html(description).css({
                           'display': 'none'
                       });
    
                       if(aoa == true){
                        $(html).appendTo(element).slideDown(2000);   
                       }else{
                        $(html).insertAfter(element).slideDown(2000);   
                       }
                    }
    
                });
            }
    
        })
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Inspired from the other topic , I wrote this code which simulates a finally
I'm working with the jQuery Validation plugin and I wrote the following code which
I am new to multithreading, and I wrote this code which prints the numbers
I wrote some C++ code in which I used Templates. Since I used templates,
I have ported some code from Mingw which i wrote using code::blocks, to visual
Simple question. A friend of mind wrote code similar to this one (which is
I wrote the below code which replaces '|' characters from the string. #include <stdio.h>
I wrote this code (which posts to a PHP page) so that if guests
I wrote a code in python which looks like: maplist=[{}]*11 mylist=[0]*11 maplist[0]['this']=1 print maplist
I wrote few lines of code which doesn't work correctly. Why? Could sb explain

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.