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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:15:53+00:00 2026-05-14T06:15:53+00:00

[First, I’m an absolute beginner. I tried to express myself as good as I

  • 0

[First, I’m an absolute beginner. I tried to express myself as good as I could – please correct me on any issue… Now: I have the following problem:]

I am loading a div element, which class always is “.gallery” from a couple of pages (in this example “the page index.php?page=orange”) into another page’s div (in this case with the ID “orange”) using the following code:

$("#orange").load("http://example.com/index.php?page=orange .gallery");

Each div.gallery I load in, is a set of a few images. Between them, you can switch (there are “previous”- and “next”-links in “.imgnavi”).

$(".imgnavi a").live("click", function(ev) {
ev.preventDefault();
ev.stopPropagation();
$(".gallery").load($(this).attr("href"));
return false;
})

What happens now: Loading the different div.gallery into the new page is no problem, but as soon as I start to navigate inside those divs (each div is a little gallery, where you can switch between images), the div.gallery I am switching in is suddenly loaded into EVERY other div.gallery in the document! How do I prevent that?

  • 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-14T06:15:53+00:00Added an answer on May 14, 2026 at 6:15 am

    Use iframes. that will remove the problem of repeated elements as the iframe encapsulates (isolates) your loaded html.

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

Sidebar

Related Questions

first take a look on this picture from localScope app : i have 2
First you should know I have looked into many questions and none of them
I have a jquery bug and I've been looking for hours now, I can't
First I want to thank you guys here, because your posts have gotten me
First, I have a dbcontext factory which is defined public class DatabaseFactory : Disposable,
First, I have a list of QWidget s that I won't know the length
First, my question might sound like a duplicate, but I have been going through
First off I have an app that provides the user information about the amount
First, I'm pretty beginner of jQuery or AJAX. I've got around 50+ links on
First of all Im new to vb 2010 and so far have enjoyed what

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.