473,395 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

iFrame ignoring headers

I have an iframe in which the source is an aspx page that retrieves a pdf and
displays it. Upon page load, it clears the headers and sends the following:

Content-Disposition: inline; filename={filename}.pdf
ContentType: application/pdf
Content-Length: XXXXXXXX

The iFrame however ignores these headers and displays an empty window. I've
checked the mime types on the server, but cannot get it to render. Any help
is greatly appreciated.

Nov 19 '05 #1
1 1324
Hi,

does your aspx page which retrieves a pdf and displays it work if used
without an iFrame?

Greetings
---------------------------------------
Daniel Walzenbach
MCP

www.walzenbach.net

"navi" <na**@discussions.microsoft.com> schrieb im Newsbeitrag
news:AE**********************************@microsof t.com...
I have an iframe in which the source is an aspx page that retrieves a pdf
and
displays it. Upon page load, it clears the headers and sends the
following:

Content-Disposition: inline; filename={filename}.pdf
ContentType: application/pdf
Content-Length: XXXXXXXX

The iFrame however ignores these headers and displays an empty window.
I've
checked the mime types on the server, but cannot get it to render. Any
help
is greatly appreciated.

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: inonzuk | last post by:
Hello dear javascripts wizards, I hope I will make myself clear enough.... I have an "index.html" file which have an IFRAME and a button (outside the IFRAME). pressing the button loads a...
11
by: Jacques | last post by:
I have been writing html/xhtml for nearly as long as I can remember. I do not like frames and stopped using <frameset> a long time ago. But... I have never used <iframe> for anything--never paid...
1
by: Robert Oschler | last post by:
I have two sites, both with valid P3P policies that passed the W3C P3P validator, including the P3P compliant HTTP headers test. On one of the sites, Site A, I have a web page that loads a...
2
by: J. B. Moreno | last post by:
I've got a page with an iframe in it, and a javascript that handles an onmouseover/onmouseout for it. Everything WORKS, but it doesn't validate... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01...
3
by: Nicky | last post by:
hi, all I have an iframe in my page. Actually what I want is just like the google search. When user clicks search, I will load the a page from another URL into iframe and then highlight the key...
0
by: Abhishek Srivastava | last post by:
Hello Everyone, I have two files. File 1 is called HTMLPage.html. The content of this file is <html><head><meta http-equiv='refresh' content='1'...
5
by: pbd22 | last post by:
hi. i have a hidden iframe for uploading files. when i check the httpfilecollection on the server, it is always zero - the files never make it to the server. i know all the javascript is working...
9
by: Lee | last post by:
Hi all, We need to create a page where we detect the finish of a game that's hosted on another site. We thought of doing it with frames, where we would put the game in an iframe that is...
68
by: zwsdotcom | last post by:
I've been looking for references for some weeks now, but haven't found an answer to the following question. I'd love some help on this: *Without* using JavaScript or other active client-side...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.