Hi, I try get some results from ajax using while loop, but it doesn't
work in IE7 and Safari.

Here's example code:

function get_results(foo){
        return $.ajax({
                        type: "GET",
                        url: "some_url.php/"+foo,
                        dataType: "json"
        }).responseText;
};

...
...
var result = 0;
var i = 0;
while(result==0 && i<=49){
     result = get_results(i);
     i++;
}
...

Although it works fine in Firefox and Opera (in firebug I can see
every single request), but in IE and Safari not. Those browsers not
responding after run this code. What's wrong and how can I fix it ?

Regards

ps.sorry for my poor english ;)


Reply via email to