Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,169
    Thanks
    19
    Thanked 65 Times in 64 Posts

    can't run multiple concurrent ajax requests?

    I'm working on a site where data has to be fetched from a 3rd party soap feed so we use ajax to give the user some immediate feedback - eg. searching animation. (searching flights fwiw). I've just added a feature where the available departure airports are context-sensitive (ie, they change when the selected destination is changed). It works great except when the search is running. ie. if you change your destination in the search form before the results have been returned from the search request, the request is queued and isn't run until after the results have come back.

    I've tried in Safari, Chrome, IE9 and FF15 and firefox is the only one where the departure airports can be changed while the search is running.

  • #2
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    Have you set asynchronous to true?
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".

  • #3
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,169
    Thanks
    19
    Thanked 65 Times in 64 Posts
    It should be true by default but I added $.ajaxSetup({'async':true}); and it didn't make a difference.


  •  

    Posting Permissions

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