just a thought...code will be executed after the second call..

var oneCall = false;

function fn(json){
    if(!oneCall){
       oneCall = true;
       return;
     }
     //code here
}

$.getJSON("url1", {}, fn);
$.getJSON("url2", {}, fn);


or you could put the second ajax call inside the function of the first one
or the other way around...

On 8/16/07, Jones <[EMAIL PROTECTED]> wrote:
>
>
> Hello,
>
> the following code provides one callback per ajax request:
>
> $.getJSON("url1", {}, function(json) {
>         do something...
> });
> $.getJSON("url2", {}, function(json) {
>         do something...
> });
>
> The problem is, that I need to call a function when both ajax requests
> are finished.
>
> Has anybody an idea?
>
>
> Another question: Does anybody know a german jQuery group or something
> similar?
>
> Jones
>
>

Reply via email to