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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:29:41+00:00 2026-05-28T01:29:41+00:00

I have used jQuery 1.6.2 so I can get <div id=drag-container> width and height

  • 0

I have used jQuery 1.6.2 so I can get <div id="drag-container"> width and height and it was working fine

But when I changed to jQuery 1.7.1 I start to have a problem with IE (9.0)

in $(document).ready() function

$("#drag-container").height() returns 0

and the web page stops it’s initial rendering for a 5 seconds.

In fact page is almost fully rendered except (may be) the same <div id="drag-container">

Can this be my fault?

I’m also using HTML5 Boilerplate and Twitter Bootstrap with Less

  • 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-28T01:29:41+00:00Added an answer on May 28, 2026 at 1:29 am

    If there are images in the #drag-container element, then you should use the $(window).load() (as you rightly corrected in the comment) instead of the .ready().

    That is because the ready event is fired once the DOM is ready to be manipulated (the actual html) while the load event is fired once all assets of the page have been loaded (including images etc).

    So your code will be running before the images are loaded, and thus their container will not have acquired its height (which might depend on its content – the images..)

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

Sidebar

Related Questions

I have used JQuery within my asp.net page. JQuery is working fine. I could
can somebody tell me what is jQuery plugin? I have used the jQuery library
I am working on some website , i have used jQuery UI , for
I have always used the mouseover event, but while reading the jQuery documentation I
I have used jQuery UI library to drag divs within a web page. While
I used to be able to get hold of $('[data-role=header]').first().height() in alpha with jQuery
I have used jquery tabs for loading data with ajax, but I need to
I have used JQuery for a small animation work: a table #photos contains 9
I have not used jquery much yet and not very familiar with it. Trying
I like jQuery and I was wondering if anyone have used a good plugin

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.