Hi,
I'm having a nightmare getting IE to download simple CSV files.
The CSV is genarated via a form submission and i've tried two methods as follows...
1. window.open..
This keeps bleeping without any info bar or message, I added the domain to popup blocker, no good, I added domain to trusted sites, still no good, I then had to edit custom level for trusted sites and enable 'prompting' for file downloads.
Finanly this works, the problem is this is in no way user friendly, average Joe doesn't know how to edit these settings, nor should average Joe have to, especially considering the potential for opening your PC up to serious securtiy risk by mistake and changing wrong settings.
2. document.location.href
This method doesn't require any browser settings to be altered, however, every time the CSV file is requested, the info bar pops up saying it has blocked the file download and you have to right click and accept the download, only the file doesn't download the browser refreshes itself, the webpage is reset and you have to re-request the file, only then will it actually download.
I cannot find anyway of telling IE to allow these downloads from this domain, doing all the browser setting as per option 1 makes no difference and the download info bar pop-up continues to show.
Is there any way round this nightmare? I don't have any problems with either method in firefox!
In my server side code i've tried printing the content to the browser as both dispositions (inline / attachment) it doesn't make any difference.
can anyone help?
Thanks 1DMF.
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> PERL v1.5 beta (FusionCharts)
I'm having a nightmare getting IE to download simple CSV files.
The CSV is genarated via a form submission and i've tried two methods as follows...
1. window.open..
This keeps bleeping without any info bar or message, I added the domain to popup blocker, no good, I added domain to trusted sites, still no good, I then had to edit custom level for trusted sites and enable 'prompting' for file downloads.
Finanly this works, the problem is this is in no way user friendly, average Joe doesn't know how to edit these settings, nor should average Joe have to, especially considering the potential for opening your PC up to serious securtiy risk by mistake and changing wrong settings.
2. document.location.href
This method doesn't require any browser settings to be altered, however, every time the CSV file is requested, the info bar pops up saying it has blocked the file download and you have to right click and accept the download, only the file doesn't download the browser refreshes itself, the webpage is reset and you have to re-request the file, only then will it actually download.
I cannot find anyway of telling IE to allow these downloads from this domain, doing all the browser setting as per option 1 makes no difference and the download info bar pop-up continues to show.
Is there any way round this nightmare? I don't have any problems with either method in firefox!
In my server side code i've tried printing the content to the browser as both dispositions (inline / attachment) it doesn't make any difference.
can anyone help?
Thanks 1DMF.
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> PERL v1.5 beta (FusionCharts)