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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:26:52+00:00 2026-06-05T07:26:52+00:00

EDIT: Alright, to help resolve this, I’ve put up the example online: http://lodge323.com/test/index.html The

  • 0

EDIT:

Alright, to help resolve this, I’ve put up the example online:
http://lodge323.com/test/index.html

The example works as intended, but it doesn’t have the content that I want on it. Note that this apparently only happens on FF13 and not IE9.

Steps to recreate the problem:
-Ctrl+F5 to reload the page (overriding cache).
-Using Firebug (addon for FF), change 1.jpg to head.gif
-Click on the Inventory menu tab on the right

Notice how there’s a gap between the menu and the bottom which doesn’t happen if 1.jpg is used. So question is, how can I get that gif image to work properly with the page?

  • 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-05T07:26:53+00:00Added an answer on June 5, 2026 at 7:26 am

    jQuery’s load is asynchronous.

    Instead of calling loadSidebar after loadContent, pass it as a callback to load:

    $(document).ready(function() {
        $(".tabs a").click(function() {
            loadContent('#ContentDiv', this, '.tabs a', 'id', loadSidebar);
        });
    });
    
    function loadContent(divTarget, elm, selector, attr, callback) {
        $(divTarget).load($(elm).attr(attr) + ' #ContentLoad', callback);
    }
    

    This will call loadSidebar, when the content has finished loading, instead of immediately after it starts loading.

    Check out Understanding Callback Functions in Javascript. It might help you understand why the callback is needed.

    Edit

    As Eric pointed out it the comments you are also storing a url in an id. You should instead store it in the href attribute of the anchor. Then you can just return false from your click handler to avoid the entire page being loaded:

    $(document).ready(function() {
        $(".tabs a").click(function() {
            loadContent('#ContentDiv', this, '.tabs a', 'href', loadSidebar);
            return false;
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

edit alright, I guess C is painful in nature--Just, this part, is particularly painful.
EDIT: Now a Major Motion Blog Post at http://messymatters.com/sealedbids The idea of rot13 is
Edit: You can get the full source here: http://pastebin.com/m26693 Edit again: I added some
[EDIT] Alright, I edited this post since the code I posted back then had
EDIT: Duplicate of Should Entity Framework Context be Put into Using Statement? I've been
EDIT: This post was originally specific to ASP.NET, but after thinking about it I'm
EDIT: There's now a doc page on this so this question is irrelevant, also
I need your help, i'm stacked on this project. When i run my applicaion
Consider this example Javascript code: a = new Array(); a['a1']='foo'; a['a2']='bar'; b = new
Alright let me explain myself here: I am making an online text based game.

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.