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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T14:19:22+00:00 2026-05-15T14:19:22+00:00

Is there any equivalent for setTimeout and clearTimeout functions in jquery 1.4.2…. I found

  • 0

Is there any equivalent for setTimeout and clearTimeout functions in jquery 1.4.2…. I found this ex which uses jquery 1.3.2..

var alerttimer = window.setTimeout(function () {
            $alert.trigger('click');
            }, 3000);
            $alert.animate({height: $alert.css('line-height') || '50px'}, 200)
            .click(function () {
              window.clearTimeout(alerttimer);
              $alert.animate({height: '0'}, 200);
            });
  • 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-15T14:19:22+00:00Added an answer on May 15, 2026 at 2:19 pm
    $(document.body).delay(3000).show(1, function(){
        // do something
    });
    

    that would make use of jQuerys fx queuing to create a timeout. To emulate an interval in that manner, use a function which calls itself in the callback closure.

    function repeat(){
         // do something
         $(document.body).delay(5000).show(1, repeat);
    }
    

    Use $(document.body).stop() to clear the fx queue and stop the interval.

    That works similiar to a javascript setTimeout interval “hack”.

    (function(){
        alert('I popup every 5 seconds! haha!');
        setTimeout(arguments.callee, 5000);
    })();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is there any equivalent to this PHP notation, which changes the original array (be
Are there any equivalent JavaScript functions for Python's urllib.parse.quote() and urllib.parse.unquote() ? The closest
Is there any equivalent 'LIKE' function(like in MySQL) for lists. for example; This is
Is there any equivalent for Ctrl + Shift + End in VIM which can
Is there any equivalent to this when a combo is data bound? I've been
Is there any equivalent in Prototype for the jQuery closest function? http://api.jquery.com/closest/ thanks
Is there any equivalent of jQuery's outerWidth in MooTools? I want to get width
Is there any equivalent in XCode for the command window in VisualStudio, in a
is there any equivalent for rundll32 in unix platforms through which we can view
jQuery lets you do things like $div.bind('click.namespace', function) $div.unbind('click.namespace') Is there any equivalent in

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.