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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:51:02+00:00 2026-06-05T01:51:02+00:00

Question: I’m getting an Invalid Argument Error when debugging a site of mine. The

  • 0

Question:

I’m getting an Invalid Argument Error when debugging a site of mine. The error only occurs when hovering over an accordian menu item.. After further inspection i discovered the code that could potentially be causing this and it is in my question further below. (See Update #2).

I have no idea what specifically is causing the error, or how to fix it.. HALPS

The line of code that it highlights is:
a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now

I can’t figure it out.. I hate IE8 🙂


Update #1

I Traced my problem to the collapsible navigation that came pre-built with this Admin Template i downloaded from ThemeForest.

something in the code for “Accordian Menu” that i found:

https://gist.github.com/48d7ffcc654ce24040c5

and this bit of code to initialize the menu:

/*
 * Accordion Menu
 */
$('.menu').initMenu();

Update #2

Further inspection reveals IE8 Dev Tools throwing this under Locals:

Prop "PaddingRight" String

Then i stumbled on a line in the second function in the gist:

        $(this).hover(
            function() {
                $(this).animate({
                    paddingLeft:parseInt(padding_left) + parseInt(5) + "px",
                    paddingRight: parseInt(padding_right) - parseInt(5) + "px"
                }, 130);
            },
            function() {
                bc_hover = $(this).css("background-color");
                $(this).animate({
                    paddingLeft: padding_left,
                    paddingRight: padding_right
                }, 130);
            }

Update #3

Here is a jsfiddle of the code with something i tried, and in jsfiddle i can’t replicate the problem. http://jsfiddle.net/7Y68Y/6/

  • 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-05T01:51:03+00:00Added an answer on June 5, 2026 at 1:51 am

    This kind of error is common when meddling with CSS. If a CSS property is given a wrong value, IE will complain about it.

    Update

    The OP forgot to mention that padding_left is declared earlier as $(this).css('padding-left')

    In that case, you should be aware of empty strings; for instance:

    $('<div />').css('padding-left') == ''
    parseInt('') == NaN
    

    With that knowledge, let’s change the assignments:

    var padding_left = $(this).css("padding-left");
    var padding_right = $(this).css("padding-right");
    

    To turn them into proper integers:

    var padding_left = parseInt($(this).css('padding-left') || 0);
    var padding_right = parseInt($(this).css("padding-right") || 0);
    

    Then let’s go back to the animation code:

    $(this).animate({
        paddingLeft: parseInt(padding_left) + parseInt(5) + "px",
        paddingRight: parseInt(padding_right) - parseInt(5) + "px"
    }, 130);
    

    Let’s assume the original padding was also in px units. In that case we can simplify the statement to:

    $(this).animate({
        paddingLeft: (padding_left + 5) + "px",
        paddingRight: (padding_right - 5) + "px"
    }, 130);
    

    And the other:

    $(this).animate({
        paddingLeft: padding_left + "px",
        paddingRight: padding_right + "px"
    }, 130);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Question: I receive the following error for the code below, does anyone know why?
Question: Why is it that holdDate under function Check(), show Nothing while debugging, I
Question Is it possible to stop a Message Driven Bean (programmatically), so that it
Question context: let say that there is some really important row in config/locales/en.yml that
Question from Object-Oriented JavaScript book: Imagine Array() doesn't exist and the array literal notation
QUESTION: What am I missing or doing wrong? I'm trying to migrate fully functional
Question is already been asked in title. Here is a code: (function($){ var filter
Question in title pretty much sums it up. I have some resource object defined
Question I'd like the CSS background texture for my content area to begin immediately
Question We're developing a custom EventEmitter inspired message system in Objective-C. For listeners to

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.