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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:44:27+00:00 2026-05-29T10:44:27+00:00

I have a conflict regarding some jquery scripts within the same document header of

  • 0

I have a conflict regarding some jquery scripts within the same document header of which one is a script dynamically calling content from a navigation menu (dynamicpage) and one is a lightbox (slimbox2) for my image gallery. ( there is also one doing the hashtag work for dynamicpage called jquery.ba-hashchange)

They both work fine on their own and it’s no problem to open the page where the gallery is at directly in the browser (here, it only works with the first image because I haven’t put the code on the other ones yet) but if I open the page from the navigation using the dynamic content script, the lightbox doesn’t work.

It seems to have something to do with the content being loaded from the dynamicpage script, since the other script should work within that content.

this is the dynamicpage:

$(function() {

var newHash      = "",
    $mainContent = $("#main-content"),
    $pageWrap    = $("#page-wrap"),
    baseHeight   = 0,
    $el;


$pageWrap.height($pageWrap.height());
baseHeight = $pageWrap.height() - $mainContent.height();

$("nav, #logo, #start, footer").delegate("a", "click", function() {
    window.location.hash = $(this).attr("href");
    return false;
});

$(window).bind('hashchange', function(){

    newHash = window.location.hash.substring(1);

    if (newHash) {
        $mainContent
            .find("#guts")
            .fadeOut(200, function() {
                $mainContent.hide().load(newHash + " #guts", function() {
                    $mainContent.fadeIn(200, function() {
                        $pageWrap.animate({
                            height: baseHeight + $mainContent.height() + "px"
                        });
                    });
                    $("nav a").removeClass("current");
                    $("nav a[href="+newHash+"]").addClass("current");

                });
            });
    };

});

$(window).trigger('hashchange');
});

Here are the scripts being loaded from my header (in this order):

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/jquery.ba-hashchange.min.js"></script>
<script type="text/javascript" src="js/dynamicpage.js"></script>
<script type="text/javascript" src="js/slimbox2.js"></script>

It would be too messy to post the scripts of the lightbox and the hashchange script here, but I hope this will do. Here is a link to the site (still under construction): http://www.designhofmann.de/test/
I’m not a jquery crack and normaly I design websites rather than coding them, so I hope you bear with my inexperience. 🙂 Any help is appreciated, since I’ve been searching for hours to find a solution.

  • 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-29T10:44:27+00:00Added an answer on May 29, 2026 at 10:44 am

    Peter, you can call $("#gallery li a").slimbox(); after your dynamic content has loaded to bind the slimbox functionality to your images.

    You can even preview this solution by opening up a javascript console and running that command.

    UPDATE

    Also check out the API document here, it may help shed some light on what this solution needs to look like and is doing.

    Hope this helps!

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

Sidebar

Related Questions

I have a conflict when I use a jquery script for inline window and
I have some scripts on my page that going in conflict. Firebug gives me
I have two projects in the same server, their settings conflict in the session.auto_start,
I have a strange problem regarding Flash error 1151: A conflict exists with definition
I have a legacy python program which defined a module whose name conflict with
I have some doubts regarding the software licensing model. Recently, while building a small
I currently have some general purpose H1, H2, H3 styles for my site which
When I do a 'git pull', I have conflict with the head commit. So
I have a conflict when trying to mix those plugins, i have based my
I have TortoiseSVN set up to use KDiff3 as the conflict resolution tool (I

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.