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 8002151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:16:34+00:00 2026-06-04T16:16:34+00:00

I am using jQuery-Image-Gallery jQuery plugin. It is a full-screen jQuery photo gallery. I

  • 0

I am using jQuery-Image-Gallery jQuery plugin. It is a full-screen jQuery photo gallery. I downloaded it and is working fine in its demo. It loads images using an ajax request to flickr. It is as follows;

$.ajax({
    url: 'http://api.flickr.com/services/rest/',
    data: {
        format: 'json',
        method: 'flickr.interestingness.getList',
        api_key: '7617adae70159d09ba78cfec73c13be3'
    },
 dataType: 'jsonp',
    jsonp: 'jsoncallback'
}).done(function (data) {
    var gallery = $('#gallery'),
        url;
    $.each(data.photos.photo, function (index, photo) {
        url = 'http://farm' + photo.farm + '.static.flickr.com/' +
            photo.server + '/' + photo.id + '_' + photo.secret;
        $('<a rel="gallery"/>')
            .append($('<img>').prop('src', url + '_s.jpg'))
            .prop('href', url + '_b.jpg')
            .prop('title', photo.title)
            .appendTo(gallery);
    });
});

This is working perfect. But I want to display my local files (in my localhost / server) in the images/photos folder. I have PHP server. How can I do this?

I would like to know the Ajax JSON call back structure so that we can artificially recreate it using a custom PHP file.

  • 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-06-04T16:16:35+00:00Added an answer on June 4, 2026 at 4:16 pm
    $.ajax({
                type: 'POST',
                url: 'ajax.php',
                dataType: 'json',
                cache: false,
                success: function(result) {
                    $.each(result, function(key,val){
    
    
    var gallery = $('#gallery'), url;
                url = val;
                $('<a rel="gallery"/>')
                    .append($('<img>').prop('src', 'images/thumbs/' + url))
                    .prop('href', 'images/photos/' + url)
                    .prop('title', url)
                    .appendTo(gallery);
    
                    });
               },
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the Galleriffic jQuery plugin for my photo gallery. The gallery images
I am working on image gallery project using ASP.NET MVC3 and jQuery Cycle Plugin.
I am using jquery for changing image path but its not working for asp.net
I'm using the PrettyPhoto jQuery plugin for an image gallery, and I'd like to
I'm using Galleria image gallery jQuery plugin. How can i change gallery info button
Helo folks., i am using jquery.cycle plugin for displaying image gallery.. i have a
I wish I can make an image gallery without using jQuery plugin. Which all
I am using jquery plugin for multiple file upload. Everything is working fine, except
I'm using a jQuery image gallery (in this case, FlexSlider ) to present several
I am using a bespoke Jquery/PHP gallery script which pulls images from a Flickr

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.