SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: 2 Request Issue

  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2006
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy 2 Request Issue

    Mozilla FireFox has this weird problem that when three AJAX requests are sent, the browser helds up until their response is not returned. For this reason coding a chat application is really hard because in several case this kind of scenerio is achieved. Is there anyway round it?

  2. #2
    SitePoint Guru Ize's Avatar
    Join Date
    Nov 2005
    Location
    The Netherlands
    Posts
    809
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have designed a little AJAX library that automatically queues new requests if there's still a request active.
    I recommend to do the same, also because multiple AJAX requests at the same time can screw with your server-side sessions (if you use any).

  3. #3
    SitePoint Enthusiast
    Join Date
    Nov 2006
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the suggestion is useful yet this may not work in case of a chat application. The reason is simply that the amount of people you can chat with in one time is not fixed. Hence if a person has opened up several chat windows with several friends then this becomes messy.


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
  •