The problem is very simple: i have to download a file when i submit a form, it\'s an ajax call when the form is submitted which lets me build a file with the data taken from
I just had to ad to the success function of the ajax request:
window.open('urltothefile.ext')