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

  • Home
  • SEARCH
  • 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 4035974
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:09:57+00:00 2026-05-20T12:09:57+00:00

I have been getting some weird errors when I upgrade jQuery from 1.4.4 to

  • 0

I have been getting some weird errors when I upgrade jQuery from 1.4.4 to 1.5.1. Maybe you guys can explain what I need to change or why the new version is not working.

In 1.4.4 I have the following code

<div class="navlink home" data-link="home">
    <span class="top">Home</span>
</div>
<div id="index-03">
</div>
<div class="navlink resume" data-link="resume">
    <span class="top">Resume</span>
</div>
<div id="index-05">
</div>
<div id="index-06">
</div>
<div class="navlink portfolio" data-link="portfolio">
    <span class="bottom">Portfolio</span>
</div>

JS:

$(".navlink").hover( 
    function () { 
        $(this).delay(100).animate({backgroundPosition: "-100% 0"}, 400);
        $(this).find("span").css("textDecoration","underline");
    },
    function () {
        $(this).queue("fx", []);
        $(this).animate({backgroundPosition: "0% 0%"}, 400);
        $(this).find("span").css("textDecoration","none");
    }
);

Which works just fine.

but when I switch jQuery versions by changing this line in my header from

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>

to

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>

The above code quits animating and the background image just disappears.

Here is a jsFiddle that shows what’s happening just change the jQuery version on the side between 1.4.4 and 1.5.1

http://jsfiddle.net/fUXZ4/ — 1.4.4

http://jsfiddle.net/3APCd/ — 1.5.1

Here is a video of exactly what is happening to me: http://img.zobgib.com/2011-03-07_1905.swf

  • 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-20T12:09:57+00:00Added an answer on May 20, 2026 at 12:09 pm

    Presumably (although i didn’t check) jquery 1.5 is less tolerant of double numeric values, this is from the .animate() docs:

    All animated properties should be animated to a single numeric value

    I changed your animation to animate backgroundPositionX (you weren’t changing the y values anyway), which will then be a single numeric value.

    Although this seems to be both an intolerance + a jquery bug, because that fix alone doesn’t play well with 1.5.1, I had to also remove the position:absolute, and then it plays nice:

    http://jsfiddle.net/fUXZ4/2/

    Maybe try floating and spacing the div’s to achieve the same look.

    I would also recommend some code changes, like chaining $(this) all the way through, and using .stop(true,false) instead of your .queue() call.

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

Sidebar

Related Questions

I have an application that has been getting strange errors when canceling out of
I have been getting an error in VB .Net object reference not set to
I have been getting a number of attacks on my website lately, with a
I have just been getting into low level programming (reading/writing to memory that sort
I use an sql server regularly and have recently been getting frustrated by the
As I have been testing sites, I have found reCAPTCHA s getting more and
OK, I know there have already been questions about getting started with TDD ..
Have been looking at the MVC storefront and see that IQueryable is returned from
Have been studying the file system related classes of Adobe AIR 1.5, but so
We have been using CruiseControl for quite a while with NUnit and NAnt. For

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.