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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:30:48+00:00 2026-05-17T06:30:48+00:00

Its only my 2nd day using this so im sorry if theres an obvious

  • 0

Its only my 2nd day using this so im sorry if theres an obvious error here. Im trying to have 3 functions execute one after the other on load event, but the 3rd callback function cancels out the 2nd. Are you allowed 3? If no whats the way around it.

$j(window).ready(function() {    
     $j("#content").animate({
        marginLeft: parseInt($j("#content").css('marginLeft'),10) == 0 ?
        $j("#content").outerWidth() : 0
    },function(){
        $j(".headerImg").slideToggle(900);
        },function(){
        $j(".headerTitleImg").slideDown(100);}
    );
});

Thank You.

  • 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-17T06:30:49+00:00Added an answer on May 17, 2026 at 6:30 am

    You are calling the animate method with two callback functions: animate(properties, callback, callback). The documentation only specifies the use of one callback function, but it’s possible that it allows more. Hoever, if it does, the second callback will then be called when the first returns, it won’t wait for any animation that the first started.

    The solution is to make the second function a callback to the first functions slideToggle call:

    $j(window).ready(function() {    
      $j("#content").animate(
        {
          marginLeft: parseInt($j("#content").css('marginLeft'),10) == 0 ?
          $j("#content").outerWidth() : 0
        },
        function(){
          $j(".headerImg").slideToggle(
            900,
            function(){
              $j(".headerTitleImg").slideDown(100);
            }
          );
        }
      );
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a regular UITableViewController and a UITableView as its only view, and I
i have one slide panel login box with jquery and its works fine only
When trying Edit Table Data in MySQL Workbench 5.2.37, its in read only mode.
So far I have only been updated a view from within its controller. I
Due to the solution I am using, I only have limited CSS classes. I
This is only the 2nd time I've tried to use log4net. This is a
How do I get a vbscript to run another vbscript? Id imagine its only
Facebook only allows its authorization system to redirect to one URL... for me it
Its a well known fact that a static method can work only on static
I think its easy to create form via only html and do not use

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.