/    Sign up×
Community /Pin to ProfileBookmark

IE7 problem – IE blocked this site from downloading…

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’;[/CODE]

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>[/CODE]

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.

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@nshiellJun 14.2007 — window.location.href = 'csv1.php';

any help?
Copy linkTweet thisAlerts:
@mrhoopzauthorJun 14.2007 — Thanks, but I've tried the following to no avail:

[CODE]window.location.href = 'csv1.php';
document.location.href = 'csv1.php';[/CODE]
Copy linkTweet thisAlerts:
@slaughtersJun 14.2007 — You are seeing the message in the IE7 Information bar aren't you.

Here's some info from a FAQ about why it comes up:

http://windowshelp.microsoft.com/Windows/en-US/Help/91b1038d-3f53-43a3-8bd8-9551e7c0b7c61033.mspx

If Internet Explorer is still using its original settings, you'll see the Information bar in the following circumstances:
[LIST]
  • [*]If a website tries to install an ActiveX control on your computer or run an ActiveX control in an unsafe manner.

  • [*]If a website tries to open a pop-up window.

  • [*]If a website tries to download a file to your computer.

  • [*]If a website tries to run active content on your computer.

  • [*]If your security settings are below recommended levels.

  • [*]If you access an intranet webpage, but have not turned on intranet address checking. For more information, see Changing intranet security settings.

  • [*]If you started Internet Explorer with add-ons disabled.

  • [*]If you need to install an updated ActiveX control or add-on program.

  • [*]The webpage address can be displayed with native language letters or symbols but you don't have the language installed.

  • [/LIST]
    ×

    Success!

    Help @mrhoopz spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.27,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...