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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:14:25+00:00 2026-06-15T08:14:25+00:00

Ok, so I have this slideshow from HTML Kickstart. (see it at http://www.99lime.com/elements/ )

  • 0

Ok, so I have this slideshow from HTML Kickstart. (see it at http://www.99lime.com/elements/)
It goes through a list of images by adding/ removing the class “current”.

I’m trying to make the page, so that whenever the image changes, the comments and tags on the page also changes, without refreshing the page.

I’m not sure how to approach this using either GET/POST methods in my app.py. Or would it be javascript/jQuery. Thanks.

mockup

  • 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-15T08:14:26+00:00Added an answer on June 15, 2026 at 8:14 am

    Let us imagine that user A and user B enter the page at the same time and see the 2 comments that others wrote before them and that both user1 and user2 write a comment each and that neither of them refreshes the page but instead keep staring at the slideshow. There will be 4 comments in the database, but if AJAX is not used for loading the new comments and tags, A and B will be seeing 3 comments, namely the previous 2 comments and their own new comment.

    • If this is acceptable, you do not need to use AJAX.

    • If this is not acceptable, you need to use AJAX.


    If you decide not to use AJAX, just pre-load the comments and other things show and hide them according to which slide you are on. If you alter the class of an element that contains the comments and make it ‘onslide1’ when you are showing the first slide ‘onslide2’ when you are showing the second and so on, you can use CSS rules to show the ones you want as follows:

    div.comments { display: none}
    .slide1 div.comments {display: block}
    .slide2 div.comments {display: block}
    /*etc ...*/
    

    An even simpler solution? Things may be even easier if you can incorporate this information in your slides. This would mean that instead of plain images you have some simple HTML that shows both an image and the comments and everything else you want to associate with the slide.


    To load comments and other stuff using Ajax, you will need to work both on the server side and on the client-side (ensure you perform the Ajax call as the slide changes or before that (possibly changing the slide exactly at the moment you receive your data)). If you do go this route and you need further help, its probably best if you ask a separate question specifying your decisions and what you want to achieve. (This was more of a question asking for advice on the general strategy.)

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

Sidebar

Related Questions

So I have a javascript library setup on http://www.topholidayrecipes.com/crockpot-chicken-recipes.html and this page uses fancy
Hey ya'll I have this site here http://www.taranmarlowjewelry.com/ and in the top right corner
ok, so i have this slideshow.html containing just a bunch of pictures, and the
I have this http://demetriad.co.uk/designtest.jpg which I am gonna transform in html, using HTML5 and
I have this AS3 slideshow code, that loads an XML with a list of
I have this drupal slideshow which pulls images from a folder sequentially by image
I have this slideshow that I'm trying to simply move up, but I can't
I have this code to run a slideshow (this is only part of what
Have this self-made slider: http://jsfiddle.net/wyc3P/4/ What it does: takes min and max values in
We are using Galleria library (http://galleria.io/) for dynamically generating slideshow from a set of

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.