As of this morning we have a handful of users experiencing a change in behavior on our very old website.
We have HTML that looks like this:
<iframe id="I1" style="HEIGHT: 495px" name="I1" marginWidth="0"
marginHeight="0" frameBorder="no"
width="100%" height="500"></iframe>
And javascript that looks like this:
document.getElementById('I1').src = Request.QueryString("p").Item(1);
That code is launched with a URL that looks like this:
https://example.com/DisplayPDF.aspx?p=../Images/TMP_1234.pdf&l=673&ver=3.1.1.33
The intention of that code is to display the .pdf file in the iframe.
It has worked that way for years.
This morning for some users it is popping up the "View Downloads" dialog and asking to Save or Open the file. One can Save or Open, but this change in behavior is confusing our less technically savvy users.
The obvious suspect is a windows/browser update; the system administrator tells me he backed out the updates.
To me it is irrelevant if it was caused by an update I need to figure out a solution for those users that will update and do not have the means to back it out.
I ran in F12 mode with the browser to see any issues. there was nothing unusual. The website works fine in Chrome.
Here is the behaviors we are seeing:
- Chrome - Consistently opens quickly in the browser popup window.
- IE 11 - HTML popup window opens but it stay blank. A "View Downloads" window opens where I can view the .pdf.
- IE 11 - HTML popup window opens and stays blank. No "view downloads" windows opens.
- IE 11 - HTML popup window opens and takes quite some time to populate with the .pdf file.
I posted this on stack because I'm hoping for a code solution to make this work on all browsers. I'm guessing I got the downvote because this might have been viewed as a inappropriate for stack.