Frank Parsons
Frank Parsons

Reputation: 251

How to make simultaneous ajax request to get JSON content from different URL's

I need to make 10 simultaneous ajax request to get JSON content from different URL's. Each request response is not dependent on each others. In this case how do I manage those requests?? I try using AjaxManager plugin but I can't configure it right to get JSON results.

Any help is very much appreciated! Please let me know if I can provide any more information. Thanks!

Upvotes: 0

Views: 557

Answers (2)

Tamzin Blake
Tamzin Blake

Reputation: 2594

I think the real question is, just how simultaneous do they need to be? You can make them a bit less asynchronous by starting some of the requests on others' callbacks.

Upvotes: 0

2hamed
2hamed

Reputation: 9047

I think you can simply use the '$.get();' method multiple times and it works simultaneously completely independent on each other. just as simple as that.
just like this...

$.get('myURL',function(data){
//do sth
});
$.get('myUrl2',function(data){
//do sth else
});

Upvotes: 1

Related Questions