![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm embedding an Acrobat file in the page with iframe class="acroframe" src="test.pdf" class="acroelement" /iframe |
|
When I test it, it opens as I would expect it. That is, embedded within the page. When my friend tests it on her computer a new window opens with the PDF in it. My questions are, why does the PDF open in a new window and how can I get it to display as it does on my computer? Andrew Poulos |
#3
| |||
| |||
|
|
The class attribute appears twice, that's invalid. You can only have the class attribute once in an element, but you can combine different classes in one attribute, eg: <span class="red green">Duct Tape</span |
|
When I test it, it opens as I would expect it. That is, embedded within the page. When my friend tests it on her computer a new window opens with the PDF in it. My questions are, why does the PDF open in a new window and how can I get it to display as it does on my computer? Andrew Poulos What browser? What platform? What reader software? Do you have a URL for us to test? Personally, I really don't like PDFs that open in a browser window. I like for my PDF reader (Foxit) to natively open the document, so I always give the user the option by offering a link, eg: <a href="somefile.pdf" class="pdf" type="application/pdf" title="Some file in PDF (size)">PDF document (size)</a>. |
#4
| |||
| |||
|
|
I'm embedding an Acrobat file in the page with iframe class="acroframe" src="test.pdf" class="acroelement" /iframe The class attribute appears twice, that's invalid. You can only have the class attribute once in an element, but you can combine different classes in one attribute, eg: <span class="red green">Duct Tape</span |
|
When I test it, it opens as I would expect it. That is, embedded within the page. When my friend tests it on her computer a new window opens with the PDF in it. My questions are, why does the PDF open in a new window and how can I get it to display as it does on my computer? What browser? What platform? What reader software? Do you have a URL for us to test? |
#5
| |||
| |||
|
|
The class attribute appears twice, that's invalid. You can only have the class attribute once in an element, but you can combine different classes in one attribute, eg:<span class="red green">Duct Tape</span |
#6
| |||
| |||
|
|
Personally, I really don't like PDFs that open in a browser window. I like for my PDF reader (Foxit) to natively open the document, so I always give the user the option by offering a link, eg: <a href="somefile.pdf" class="pdf" type="application/pdf" title="Some file in PDF (size)">PDF document (size)</a>. The link is the simpler thing to do and should be fine to suit every taste at the other end. |
#7
| |||
| |||
|
|
dorayme wrote: Personally, I really don't like PDFs that open in a browser window. I like for my PDF reader (Foxit) to natively open the document, so I always give the user the option by offering a link, eg: <a href="somefile.pdf" class="pdf" type="application/pdf" title="Some file in PDF (size)">PDF document (size)</a>. The link is the simpler thing to do and should be fine to suit every taste at the other end. Yes, it may well be but I need to know why a PDF that I've "embedded" in a page can cause a new window to open. |
#8
| |||
| |||
|
|
"Andrew Poulos" <ap_prog (AT) hotmail (DOT) com> wrote in message news:bpKdnaRYFN8-InLXnZ2dnUVZ_uCdnZ2d (AT) westnet (DOT) com.au... dorayme wrote: Personally, I really don't like PDFs that open in a browser window. I like for my PDF reader (Foxit) to natively open the document, so I always give the user the option by offering a link, eg: <a href="somefile.pdf" class="pdf" type="application/pdf" title="Some file in PDF (size)">PDF document (size)</a>. The link is the simpler thing to do and should be fine to suit every taste at the other end. Yes, it may well be but I need to know why a PDF that I've "embedded" in a page can cause a new window to open. It's a browser setting. |
#9
| |||
| |||
|
|
rf wrote: "Andrew Poulos" <ap_prog (AT) hotmail (DOT) com> wrote in message news:bpKdnaRYFN8-InLXnZ2dnUVZ_uCdnZ2d (AT) westnet (DOT) com.au... dorayme wrote: Personally, I really don't like PDFs that open in a browser window. I like for my PDF reader (Foxit) to natively open the document, so I always give the user the option by offering a link, eg: <a href="somefile.pdf" class="pdf" type="application/pdf" title="Some file in PDF (size)">PDF document (size)</a>. The link is the simpler thing to do and should be fine to suit every taste at the other end. Yes, it may well be but I need to know why a PDF that I've "embedded" in a page can cause a new window to open. It's a browser setting. Could you please give me an idea what setting that would be in, say, IE 8? |
#10
| ||||
| ||||
|
|
Oops, I cut-and-pasted in haste. |
|
The client who has IE 6, Windows XP and Acrobat Reader 9 says its happening to her. |
|
I have no access to her server to see it for myself. |
|
I was kind of hoping someone would say something like, "oh, that's happening because the mimetype's not been set" (or whatever the real reason is). |
![]() |
| Thread Tools | |
| Display Modes | |
| |