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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:25:04+00:00 2026-05-11T22:25:04+00:00

I am currently building an making my new website. It uses one page and

  • 0

I am currently building an making my new website. It uses one page and uses a jQuery accordian menu to load the content. The content it split up in six different div’s and all load as soon as the page is accessed. I want it to load each div when the link to it is clicked on. To decrease the page loading time.

You can see this in action on my work in progress site here: http://is.gd/1p1Ys

Since I didn’t make the jQuery script and I am really bad at JavaScript/jQuery I don’t have a clue what to do. So I am wondering if anybody here can help me out.

Thanks a ton,

Ryan

  • 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-11T22:25:04+00:00Added an answer on May 11, 2026 at 10:25 pm

    I agree with the other answers that jquery-ui tabs does this exact thing, but you can hack your accordian.js file pretty easily… just change the hrefs in your navigation to point to external html files containing the content you want, i.e. href=”#lifestream” => href=”lifestream.html”,

    and then in accordian.js:

    $links.click(function () {
      var link = this,
      if(!link.href.match(/^#.*/)) { //if the href doesn't start with '#'
        loadDiv(link.href);
      } else {
        doRestOfFunction(); //everything your script is currently doing.
      }
    });
    
    function loadDiv(href) {
      $.get(href, function(html) {
       var newDiv = $(html)
       $(".panels").append(newDiv);
       newDiv.hide();
       doRestOfFunction(); //same as above
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a website currently with a page for uploading images. The images will
I'm currently building a Silverlight Content Management System for Website Management. At first, I
We're currently building multiple copies of our Chrome CRX, one for each of our
I'm currently building a website with Django and want to host user bio style
I'm currently building an web application for a customer that uses a rich client.
I'm making a class so I can cheat at minesweeper, and is currently building
I'm currently building a new web app, in Java EE with Apache Tomcat as
Currently building an app that runs on mobile phones not related to the issue
I'm currently building a reporting service (WCF) - filled reports are produced using an
I am currently building a measurement unit convertion app for Windows Phone. After setting

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.