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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T16:17:12+00:00 2026-05-21T16:17:12+00:00

I hit the dead end with this one, scratching my head for half a

  • 0

I hit the dead end with this one, scratching my head for half a day already. The problem is quite strange, if you’d care to look at my source code: http://www.modwebsolutions.com/test2 (warning: not optimized yet, might lock browser for a few seconds). Problem is, that sequence of setTimeouts works ok in Opera, but in other browsers only first one is executed and then execution of the script stops. Exerpt from my code:

var a1=setTimeout(drawVertical([arguments]),1000);
var b1=setTimeout(drawVertical([arguments]),1000);
var c1=setTimeout(drawVertical([arguments]),1000);      
var d1=setTimeout(drawVertical([arguments)],1000);

Tried everything, enclosing function in quotes, looking for other syntax errors, nothing helped. And the strange thing is as I mentioned – everything works ok in Opera.
UPDATE: also works in Chrome, and that makes it even more confusing…

UPDATE2: same example without timeout, works just fine (though slow): http://www.modwebsolutions.com/test

  • 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-21T16:17:13+00:00Added an answer on May 21, 2026 at 4:17 pm

    What you have done here is called a function before setting the timeout. Immediately when the code sees drawVertical([arguments]), it is going to call that function. The return value of that function is what you are passing as your first argument into setTimeout, so unless drawVertical returns a function, this won’t work.

    So you could get this to work by giving setTimeout a function to call:

    var args = arguments;
    var a1=setTimeout(function() { drawVertical([args]); },1000);
    ...
    

    EDIT: I set the outer arguments to an args variable, since the arguments would be different in the inner function.

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

Sidebar

Related Questions

I've hit a dead end with this code I'm working on. I have a
I have hit upon this problem about whether to use bignums in my language
I've tried integrating sfPHPOpenIdPlugin but that hit a dead-end since it's built for Symfony
I have started working with SSIS recently and I am hit a dead end
I hit this error while my web application was trying to execute a SELECT
I have hit a classic problem of needing to do a string replace on
I obviously do not 'grok' C++. On this programming assignment, I have hit a
I have hit a real problem. I need to do some Kmeans clustering for
When I hit C-k, Emacs kills to end-of-line. When I hit C-k again, it
I got hit by a strange asymmetry in C# that I do not really

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.