Hacker News new | past | comments | ask | show | jobs | submit login

You could create a download file, but only in newer browsers.

We have an internal application which requires CSV export, we use something like this:

        csv = cleanTurkishChars(makeCSV(data));
        csv = 'data:application/csv;charset=utf-8,' + encodeURIComponent(csv);
        $("#csvexport").attr({
            'href': csv,
            'target': '_blank'
        });



Thanks! Any idea where I can read more about it? What browsers support it? Are there file size limitations?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: