File Download Dialog Box in IE6 'Action Canceled message - configuration

I have created site which is having PDF download option. When I click on a link to download a file with IE6 installed, initially a browser window appears with the File Download Dialog box in front (asking to Open, Save, Cancel). Regardless of which option I choose, the browser window stays open and returns an 'Action Canceled - Internet Explorer was unable to link to the web page you requested. The page might be temporarily unavailable.'
Though the browser window stays open, whatever option I choose is handled accordingly. For example, if I click 'Open', the file downloads and then I am left with the aforementioned browser window. If I hit 'Cancel' the File Download dialog box closes but the browser window stays open.
The behavior does not happen at all with IE7. I've made sure the computer has all of the available updates. I'm just wondering if this behavior is normal for IE6 or if I have some setting that I am missing. Can you please assist? Thanks.

This is browser and version specific. You can control the behavior via the registry:
This behavior occurs if the content type that is specified in the header that is returned from the server does not match the file name that is specified in the Content-Disposition header.
References
Handling MIME Types in Windows Internet Explorer

Related

Google Chrome is not opening local HTML files when I double click to open them

I must have done something to Google Chrome on my Windows.
Local HTML files, even though they are associated with Chrome, do not actually open in Chrome anymore when I double click them. For example, double clicking an HTML file on my desktop will launch Chrome, but the browser window will not display the content of the HTML file.
If I change the program my computer will use to display HTML files to Safari or Firefox, they open as I expect them to, rendering the HTML properly in a browser window.
If, I have a Chrome window open and drag the HTML file into the browser window, it will render the HTML content properly, but the double clicking is the behavior I'm hoping to get back.
Does anyone know why this might have caused this change in Chrome behavior? And best of all, how to fix it?

Link of a PDF not working in Mozilla but works in Chrome

I made a button for a PDF download that is working well in Chrome but it doesn´t open in Mozilla.
This is the code I used:
<a target="_blank" href="http://gerster.com/docs/posamenten_neuheiten_2014_2.pdf">Jetzt PDF-Katalog herunterladen</a>
What could be wrong?
Note: No error is showing up.
Q Using window.open or "target=" such as blank it doesn´t open in ### Browser
What could be wrong?
It is up to each user to download or permit binary.PDF running in a browser viewport after download, this is especially true after download fron any non trusted site.
OOB many browsers assume they can sandbox the PDF download and then allow as default action review of the PDF file. Chromeium based browsers like Edge may be more inclined to use that before the user improves their security.
So the 1st task for a user should be to switch off Edge auto viewing of PDFs and switch to a more secure setting.
In that case Edge / Chrome and other browsers will NOT auto run the downloaded PDF but ask the user if they wish to View after Download or simply Download.
One of the possible values of that attribute is _blank, which tells the browser to open a new window (or tab, if that’s the user’s preference) when that link is clicked.
This used to be “invalid” in HTML
see A Bad Reason: The link is to a PDF
If you are going to do it, not only do you need the target attribute for the functionality, you need to rel attribute for security.
So do not open yourserver to security issues blacklist or pop-up blocking see https://mathiasbynens.github.io/rel-noopener/
Don’t use target=_blank (or any other target that opens a new navigation context), especially for links in user-generated content, unless you have a good reason

Google Chrome source code reloading

How do I reload a page in Google Chrome, so the source code will not change?
In other words, if I change some text on the page with developer tools, and reload the page it loads the source code from the server. How can I reload the page so it will keep my previous changes I made?
To be more specific:
I enter a page
I edit content with Developer Tools
I press reload
I get the original version
As far as I know I must forbid Google Chrome to download source code from server or load a cached version, but how I to do that?
As far as i know isnt this possible, because when you press reload, Chrome automatically "deletes" your webpage that is shown at the moment and gets the source from the server again. You could try to save your changed webpage in the cache of a proxy server and then get it from there.

How can I get local web pages to always open in a new window in XP?

I am running windows XP 2003 sp3. Ie is the default browser. If I have a web page open and then open a local web page it will always open it in the existing window. I want local web pages and url shortcuts to always open in a new window. How can I do this?
Somehow I don't think you are asking for programming help but I'm going to respond appropriate to the forum. Use the target attribute on your links to force browser window/tab actions. Valid standard options are: _self, _blank, _top, _parent. Use _blank to force the link to open in a new tab/window as per the default behaviour you have setup in IE.
Example
I don't think this can be done. The thing is windows XP will tend to open any local web page files and its shortcuts with the "Default Programs" that's mapped to that file type. So in your case, the IE being the default browser program, it opens in a new tab.
The same file will open up starting IE if there isn't any instance of IE already running. So I think the simple way to do your need is to have another IE instance running, and drag-drop the file you wan't to open into the IE window, which will open it.
P.S: other browsers like chrome allows dragging the tab outside the window to open up in a different window.

Internet Explorer Blocked download file

I use jquery post function to go to server and bring the link to file download.
When the func returns the link, I try to open a popup or iframe with link source, to popup save/open file window
I tried this
window.open(data.link,'Download','top=20,width=3,height=3,left=20');
and
document.getElementById('download').src=data.link;
It works in Firefox , but in Internet Explorer it shows the message : "To Help Protect Your Security, Internet Explorer Blocked.."
How do I get over this?
EDIT:
If I do it from direct link from the page it does not show me this message
This is due to IE's security settings. By default, IE automatically blocks any automatic downloads. There's no (legit anyway) way you can get around that except by changing the security settings of the browser. The user will be able to download the file by clicking on the bar that it displays, and click download file.
Well that looks like the popup blocker sort of behavior to me. I don't think you can do anything about this except use an alternative method to fetch the URL.
By the way, visitors are used to the Yellow bar and right clicking on it to get the correct download.
So I don't think you need to panic too much.
Edit:
You're not going to be able to change the security settings of everybody's browser. So either give up, or get by.