I have to make a file download with php headers

```
header("Cache-Control: no-cache, must-revalidate");
header("Content-Type: text/plain");
header('Content-Disposition: attachment; filename="'.$equip[1].'-config.txt"');
$downloadable=str_replace("\n", "\r\n", $res['result']);
echo $downloadable;

```

When User clicks on the download button, the form gets a jQuery block ui with a spinning gif, becouse the file generates for long time. Then User get a file, and I need to unblock my form...

Have you any idea for this?