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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T13:29:20+00:00 2026-05-12T13:29:20+00:00

A site I am working on displays an intermittent runtime error but only in

  • 0

A site I am working on displays an intermittent runtime error but only in IE7 and 8. This error will appear almost randomly (like, it may pop up on initial page load one time or it may not pop up until the nth page load). The error says it occurred at line:0 and the error is “Object required”. I’m using jQuery throughout the site but disabling that in pieces (i.e. the various plugins and whatnot) has not solved the problem. I’m still cranking on it but want to get this “Help!” out on stackoverflow in case someone has dealt with something like this before.

The intermittency of it is what is really chapping my ass.

  • 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-12T13:29:20+00:00Added an answer on May 12, 2026 at 1:29 pm

    From your answer, I’d guess that the element with an id of ‘header-section’ is at the top of the page and, occasionally, the css rule is being applied before the rest of the page loads. This means that the expression tries to evaluate the offsetHeight of ‘content-section’ before that element exists.

    I’ve a couple of suggestions about how to deal with this, but you would have to try them in order to evaluate their usefulness.

    1/ Instead of making the rule based on the id of the ‘header-section’, make it based upon the class ‘header-section. Don’t add this class to the markup, but add it upon completion of document loading, via jquery – leave the id of the element as it is…

    $(document).ready(function(){
      $("#header-section").addClass("header-section");
    });
    

    2/ Make the rule more tolerant of the ‘content-section’ not being found – not sure how often the expression is evaluated, as I’ve never felt the need to use expression in css rules, so this may not work.

    #header-section {margin-top: expression((0 - (this.offsetHeight + (document.getElementById("content-section") ? document.getElementById("content-section").offsetHeight : 0))) + "px");}
    

    Let me know how you get on.

    P.S. I’ve no idea what the rule is trying to achieve – I mocked up a page with what I assume is the same layout, and all it does is move a lot of the content off the top of the page, in a way that prevents it from ever being seen.

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

Sidebar

Related Questions

I am working on a site and working on a component that will take
Yeah, sounds silly but I'm a designers and the site I'm working on is
I'm trying to get a PHP site working in IIS on Windows Server with
A site I'm working on has Flash headers (using swfobject to embed them). Now
A site I am working on that is built using PHP is sometimes showing
The site I'm working on is using a Databound asp:Menu control. When sending 1
I have a site I'm working on where I want to mark if a
So I've got a hobby site I'm working on. I've got items that are
I'm about to put a beta version of the site I'm working on up
The site that I am working on is at a remote server. I want

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.