IE blocks files dowloaded with javascriot:GetFile

  • Thread starter Thread starter Doug Warner
  • Start date Start date
D

Doug Warner

My work system, when displaying files from an internal website, using
this javascript code:

<a href="javascript:GetFile('96068','SDR')" style="text-decoration:
none" title="Filename: xxxx.txt Comments: Comment Text. ">xxxx.txt</a>

When I click one of these links with IE, it gives me the usual Open or
save dialog. I select OPEN, and it opens as usual.
If I try to open a second, different documet using the method, without
closing the first one, then IE displays a yellow Information Bar
across the top of the screen with this text in it:
"To help protect your security, Internet Explorer has blocked this
site from downloading files to your computer. Click here for
options..."
When I click the bar, then the option to download the file, I get the
Open/Save dialog again. When I click OPEN, nothing
happens. Instead, it just shows me the previous file I opened, and
does NOT open the new one. If I close the previous file window
first, then the new one opens OK.

I've selected HELP for the Information Bar, made the changes suggested
in the security menu to turn these warnings off, but it still happens.

Any idea how to disable this "information bar" feature so it will let
me open more than one document using javascript:GetFile?

The IE version is: 6.0.2900.2180.xpsp_sp2_gdr.050301-1519
 
Try replacing the hyperlink with say a label or button and then use the
onclick event to launch the GetFile function.
My work system, when displaying files from an internal website, using
this javascript code:

<a href="javascript:GetFile('96068','SDR')" style="text-decoration:
none" title="Filename: xxxx.txt Comments: Comment Text. ">xxxx.txt</a>

When I click one of these links with IE, it gives me the usual Open or
save dialog. I select OPEN, and it opens as usual.
If I try to open a second, different documet using the method, without
closing the first one, then IE displays a yellow Information Bar
across the top of the screen with this text in it:
"To help protect your security, Internet Explorer has blocked this
site from downloading files to your computer. Click here for
options..."
When I click the bar, then the option to download the file, I get the
Open/Save dialog again. When I click OPEN, nothing
happens. Instead, it just shows me the previous file I opened, and
does NOT open the new one. If I close the previous file window
first, then the new one opens OK.

I've selected HELP for the Information Bar, made the changes suggested
in the security menu to turn these warnings off, but it still happens.

Any idea how to disable this "information bar" feature so it will let
me open more than one document using javascript:GetFile?

The IE version is: 6.0.2900.2180.xpsp_sp2_gdr.050301-1519
 
Rob Parsons said:
Try replacing the hyperlink with say a label or button and then use the
onclick event to launch the GetFile function.

Unfortunately, I have no control over the site. I'm just a lowly
user, trying to use the date contained on the site with the least
difficulty.
 
....
<QP>
My work system, when displaying files from an internal website, using
this javascript code:

<a href="javascript:GetFile('96068','SDR')" style="text-decoration:
none" title="Filename: xxxx.txt Comments: Comment Text. ">xxxx.txt</a>

When I click one of these links with IE, it gives me the usual Open or
save dialog. I select OPEN, and it opens as usual.
If I try to open a second, different documet using the method, without
closing the first one,
</QP


If you must close the first instance but want to see its contents
try cloning it with Ctrl-N and then closing the original.


<QP>
then IE displays a yellow Information Bar
across the top of the screen with this text in it:
"To help protect your security, Internet Explorer has blocked this
site from downloading files to your computer. Click here for
options..."
When I click the bar, then the option to download the file, I get the
Open/Save dialog again. When I click OPEN, nothing
happens. Instead, it just shows me the previous file I opened, and
does NOT open the new one. If I close the previous file window
first, then the new one opens OK.

I've selected HELP for the Information Bar, made the changes suggested
in the security menu to turn these warnings off, but it still happens.

Any idea how to disable this "information bar" feature so it will let
me open more than one document using javascript:GetFile?

The IE version is: 6.0.2900.2180.xpsp_sp2_gdr.050301-1519
 
Back
Top