SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Wizard
    Join Date
    Mar 2002
    Location
    Bristol, UK
    Posts
    2,240
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Multiple functions simultaneously?

    Say I have between 1 and x functions, and they're called one after another. If I'm correct, one function needs to finish executing before the next starts.

    What if I want all x functions to execute simultaneously? Is this possible with JavaScript?

    Any advice would be much appreciated.
    Sam Hastings

  2. #2
    Floridiot joebert's Avatar
    Join Date
    Mar 2004
    Location
    Kenneth City, FL
    Posts
    823
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not possible.

  3. #3
    SitePoint Enthusiast
    Join Date
    Feb 2007
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry no this is not possible. I thought I might be able to workaround it using setTimeout but even that works syncronously.

  4. #4
    SitePoint Member
    Join Date
    Jun 2008
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well actually cant because for example you cant read book at the same time from first page 10th page 20th page 30th page... you can read only from 1st page ore 10th page ore 20th page ore 30th page... same browser... he reads first javascript code wan second wan third. You can change places of codes whats all.

  5. #5
    SitePoint Addict
    Join Date
    Dec 2007
    Posts
    207
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://weblogs.mozillazine.org/roadm...eads_suck.html
    http://google.com/search?q=javascript+threads

    Basically, no.

    But I think there is a solution to your problem, you just have to think differently.
    mmj


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •