Ok, so on my site users can search a database and they are then taken to a results page. On this page, there is a drop down box with several options corresponding to dynamically created csv files (using php).
When a user selects an option, I use location.href to direct them to the correct php script. The problem is, IE7 doesn’t cooperate. It doesn’t accept something like:
[CODE]location.href = ‘csv1.php’;
and instead an information bar shows up telling me it has blocked this site from downloading files to your computer.
If I just put a plain old HTML tag in, like so:
[CODE]
<a href=’csv1.php’>CSV 1</a>
and they click on that it works fine, but I want to keep my dropdown box.
Any solutions? It’s also really annoying because even though you can click on the information bar and choose ‘Download File’, nothing happens. You have to then repeat your selection in the drop down in order to actually get the file.