Why does this code

```
for(var i = 0; i < array.length; ++i) {
    array[i]["bla"] = "check";
}

```

work perfectly, whereas the array is here, according to firebug, undefinied:

```
for(var i = 0; i < array.length; ++i) {
    $.ajax({
        type: "POST",
        url: "my url",
        data: "data here",
        success: function() {
            array[i]["bla"] = "check";
        }
    });
}

```

How can I fix that issue?