**Code:**

```
$(element).click(function() {
jQuery.ajax(
type: 'GET',
url: 'file.php?id=xxx',
async: false,
success: function(data) {
...
}
);
});

```

**file.php** do a select on database and it will show about 500.000 lines.

I need to do a progressbar(0 - 100%) while ajax get these lines.

does anyone have any suggestions?

maybe should I use an `iframe` to do it? I don't know if it's possible to do with ajax.