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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:36:41+00:00 2026-06-01T15:36:41+00:00

Im using .load to load (when clicked) a nivo slider and a small bit

  • 0

Im using .load to load (when clicked) a nivo slider and a small bit of text into a empty div at the top of the page. It all works fine but when it loads it also loads an empty slider div bellow the footer, i could just hide this by making the giving the page a max-height but id like to get to find out what is causing this.

the page in question is new.pudle.co.uk if you click on one of the pink tiles it will open load the slider and at the same time put the empty div at the bottom.

The js im using is

google.setOnLoadCallback(function() {
$("#pegasus-tile, #o-w").click(function(){
    $("#proj-content").load("projects/pegasus.html", function(){

        $('<div id="slider" class="nivoSlider"></div>').appendTo($('body'));
        $('#slider').nivoSlider({effect: 'sliceUpDown'}),

        $("#close").click(function(){
        $("#proj-content").load("projects/blank.html"),


        $("#next-pegasus").click(function(){
        $("#proj-content").load("projects/bgapp.html");


            }); 
        });
    });
  });
}); 
  • 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-01T15:36:43+00:00Added an answer on June 1, 2026 at 3:36 pm

    I don’t think you need the line

    $('<div id="slider" class="nivoSlider"></div>').appendTo($('body'));
    

    cos you have

    <div id="slider" class="nivoSlider">
    <img src="images/projects/pegasus property/1.png" width="490" height="400" />
    <img src="images/projects/pegasus property/2.png" width="490" height="400" />
    </div><!--slider close-->
    

    in projects/pegasus.html, hence two sliders are appearing, and the one added by jquery is at the bottom.

    Did you add this cos the nivoSlider didn’t work without that or something?

    Also I notice you have a google.setOnLoadCallback(function() { for every pink box… This may not turn out to be very maintainable (ok I assume you are just testing at the moment, but better to get it ‘right’ the first time. Maybe add a common class to each pink box, then use its id to work out what content to load.

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

Sidebar

Related Questions

im using .load to load content into a div, i would then like to
I need help collapsing a collapsible div on page load. I'm using this JavaScript
I was trying to load a data file into mysql table using LOAD DATA
I am loading JPEGs into a Flash presentation using load with a flash.display.Loader and
When using jQuery.load to dynamically load HTML content into a webpage, what is the
I need to make a div visible when a checkbox is clicked using jQuery/Java.
Using Java, I generate a new JFrame frame and load an image into it
OK here goes, I'm using jQuery ajax to load post from inside a slider.
There is a link that, when clicked, toggles between loading HTML into a div
I using Wordpress to display a list of thumbnails which will load a page

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.