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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:22:11+00:00 2026-06-05T12:22:11+00:00

I think it has something to do with a function running in a difference

  • 0

I think it has something to do with a function running in a difference scope from where the jquery library is not accessable (shown being called as the last parameter on the second line below)

var funcExpandHeight = container.animate({
    height: '300px'
}, 300, function () {});
foo.animate({
    height: 'show'
}, 300, funcExpandHeight);

Line one works, then crashes on 'f.easing[i.animatedProperties[this.prop]] is not a function'

Munging the lines up together as show below, and the operation completes successfully.

    foo.animate({
     height: 'show'
 }, 300, function () {
     container.animate({
         height: container[0].scrollHeight + 'px'
     }, 300, function () {})
 });
  • 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-05T12:22:13+00:00Added an answer on June 5, 2026 at 12:22 pm

    Third argument of .animate() is callback function, but in your first code you’re just passing a variable.

    var funcExpandHeight = function() {
       container.animate({height: '300px'}, 300, function(){});
    }
    foo.animate({height: 'show'}, 300, funcExpandHeight);
    

    NOTE

    config of .animate() is like following:

    .animate( properties [, duration] [, easing] [, complete] )
    

    Where [] means optional.

    In your code, you don’t give the easing so, the third argument will treat as complete callback function.

    For more detail see above link.

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

Sidebar

Related Questions

I keep getting a exc bad access error and I think it has something
How would I do this? I think this has something to do with editing
I've been using this function to check if a process is running or not.
I included a Graphing and Plotting Jquery library called JQplot with wordpress using the
I have some code which I think has extra release statements. Is the code
I know this topic has been discussed but I think it has some differences.
There are similar questions to this, but I don't think anyone has asked this
Okay i have two models: posts and comments. as you can think comments has
I work in Dreamweaver and Eclipse when developing. I think Dreamweaver has a really
I think this question has been asked many a times but I've been searching

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.