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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:46:46+00:00 2026-06-16T17:46:46+00:00

If anybody that knows jQuery better than me (probably 99% here since this is

  • 0

If anybody that knows jQuery better than me (probably 99% here since this is my first week trying this code 🙂 have some time left over here´s a question that I really need some answer to. Sorry for some incorrect english.

Some of you have probably read the other questions I asked about putting external page content into divs and UI select-slide elements that dosent load properly in such loaded divs, this is a continuation on that subject and now I hope to solve this and I make a new subject to gather the info here. The main question is Why UI-sliders (select elements) dont work when they are loaded (from div in another page) to divs via jQuery (in same homepage).

This is the code I am using to load content into the site:

load_script.js
$(document).ready(function(){
    $('#div_that_will_receive_content').load('from_page.html #from_div');
});

Problem: The problem occurs in two different ways.
1: When only the DIV is loaded the slider dosent show, evrything els in the div shows and the div loads correct except from the slider. The slider shows up for 0.1 second at the loading moment then disapears.
2: When a entire site is loaded in (included ui sliders) the content loops and the site never stops loading, when checking in browser consol 25-30mb is loaded in seconds. Even in this case the slider shows for maybe 0.1 second exacly at load moment, and becuse the of the loop-loading of the site the slider flashes.

Page_1.html

<html>
<head>
<script src="jquery-1.8.3.js" type="text/javascript"></script>
<script src="jquery-ui-1.9.2.js" type="text/javascript"></script>
<script src="load_script.js" type="text/javascript"></script>

<link href="jquery-ui-1.9.2.custom.css" rel="stylesheet" type="text/css" />

<script>
$(function() {
    $( "#slider" ).slider();
});
</script>
</head>
<body>

<div id="div_1">DIV 1 = This is where the content of div_2 should be</div>

</body>
</html>

Page_2.html

<html>
<head>
<script src="jquery-1.8.3.js" type="text/javascript"></script>
<script src="jquery-ui-1.9.2.js" type="text/javascript"></script>
 <script src="load_script.js" type="text/javascript"></script>

<link href="jquery-ui-1.9.2.custom.css" rel="stylesheet" type="text/css" />

<script>
$(function() {
    $( "#slider" ).slider();
});
</script>
 </head>
<body>

<div id="div_2">DIV 2 = This div containing a slide-select-element will be loaded to to     div_1</div>

</body>
</html>

load_script.js

<script>
    $(document).ready(function(){
        $('#div_1').load('Page_2 #div_2');
});
</script>

I am still having some problems with this. Now the problem is that if I load the entire Page2.html into the div in Page1.html it all goes well. But if I just load in selected divs from Page2.html the slide-elements dont show up, but the rest of the content does (text).

This work and the whole page get loaded in including the sliders:

<script>
    $(document).ready(function(){
        $('#div_1').load('Page_2');
});
</script>

This dont work and the sliders dont show up but the rest of the content does (text):

<script>
    $(document).ready(function(){
        $('#div_1').load('Page_2 #div_2');
});
</script>

Does anybody have a clue what this can depend on?

  • 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-16T17:46:46+00:00Added an answer on June 16, 2026 at 5:46 pm

    Remove all your script imports on your second page – you only need them to load once – Also each time you load load_script.js – it is causing an endless loop since that’s where your load function is. You can then use the callback function of .load() to initialize the slider.

    $(document).ready(function(){
        $('#div_that_will_receive_content').load('from_page.html #from_div',function(){
             $( "#slider" ).slider();
        });
    });
    

    That will break your page 2 if you are also using that page independently though. If that’s the case then you just need to remove the following from page2

    <script src="load_script.js" type="text/javascript"></script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hoping that anybody here knows about a good one: I'm looking for a (free
Does anybody here knows how do I use jQuery.param to create an object with
I'm wondering if anybody knows of a code snippet anywhere that allows you to
Anybody knows where to copy the AjaxControlToolkit.DLL so that it appears in the Toolbox
Does anybody know how did Facebook do that "time ago". I'm trying to do
First, I know that there are jQuery plugins for search suggest. The reason I'm
I have an issue trying to apply jQuery AutoComplete to multiple rows in a
I have a jQuery problem that I can't seem to work out on my
I'm using jQuery 1.8 and I have an ajax call that returns JSON. If
I have an image that has it's width greater than the height and it

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.