HighDots Forums  

PDF embedded opening in new window

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss PDF embedded opening in new window in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andrew Poulos
 
Posts: n/a

Default PDF embedded opening in new window - 11-02-2009 , 04:58 PM






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

Reply With Quote
  #2  
Old   
Adrienne Boswell
 
Posts: n/a

Default Re: PDF embedded opening in new window - 11-02-2009 , 09:46 PM






Gazing into my crystal ball I observed Andrew Poulos
<ap_prog (AT) hotmail (DOT) com> writing in
news:adKdnecXTeK_y3LXnZ2dnUVZ_hGdnZ2d (AT) westnet (DOT) com.au:

Quote:
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>

Quote:
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>.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Reply With Quote
  #3  
Old   
dorayme
 
Posts: n/a

Default Re: PDF embedded opening in new window - 11-02-2009 , 10:21 PM



In article <Xns9CB7BEF28B29Carbpenyahoocom (AT) 188 (DOT) 40.43.213>,
Adrienne Boswell <arbpen (AT) yahoo (DOT) com> wrote:

Quote:
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

Are you sure?

Quote:
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>.
The link is the simpler thing to do and should be fine to suit every
taste at the other end.

--
dorayme

Reply With Quote
  #4  
Old   
Andrew Poulos
 
Posts: n/a

Default Re: PDF embedded opening in new window - 11-02-2009 , 10:22 PM



Adrienne Boswell wrote:
Quote:
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
Oops, I cut-and-pasted in haste.

Quote:
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?
In my testing on Windows XP, Vista, and 7 with IE 6, 7, 8, Firefox,
Safari, Opera and Chrome, and with Acrobat Reader 8 and 9 I get no
issues. 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).

Andrew Poulos

Reply With Quote
  #5  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: PDF embedded opening in new window - 11-03-2009 , 12:10 AM



Adrienne Boswell wrote:

Quote:
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
Canadian joke, eh?

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Reply With Quote
  #6  
Old   
Andrew Poulos
 
Posts: n/a

Default Re: PDF embedded opening in new window - 11-03-2009 , 12:28 AM



dorayme wrote:

Quote:
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.

Andrew Poulos

Reply With Quote
  #7  
Old   
rf
 
Posts: n/a

Default Re: PDF embedded opening in new window - 11-03-2009 , 01:50 AM



"Andrew Poulos" <ap_prog (AT) hotmail (DOT) com> wrote

Quote:
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.

Reply With Quote
  #8  
Old   
Andrew Poulos
 
Posts: n/a

Default Re: PDF embedded opening in new window - 11-03-2009 , 01:56 AM



rf wrote:
Quote:
"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?

Andrew Poulos

Reply With Quote
  #9  
Old   
rf
 
Posts: n/a

Default Re: PDF embedded opening in new window - 11-03-2009 , 02:37 AM



"Andrew Poulos" <ap_prog (AT) hotmail (DOT) com> wrote

Quote:
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?
No idea. I don't currently have IE8 installed.

And I have never explored which browser setting it is as it's totally
irrelevent (apart from your own computer).

Your viewers will see extenal files (pdf, xls, whatever) in a new window or
not, or even in the original application (adobe viewer?) according to the
settings in their browsers. Nothing you can do will change that. You do not
have access to their browser settings.

In any case if your friends browser pops up a new window to view a PDF then
she must be used to that. If you were to change things then you just might
confuse her.

Reply With Quote
  #10  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: PDF embedded opening in new window - 11-03-2009 , 03:03 AM



Andrew Poulos wrote:

Quote:
Oops, I cut-and-pasted in haste.
Posting a URL would have saved everyone's time.

Quote:
The client who has IE 6, Windows XP and Acrobat Reader 9 says
its happening to her.
So why were you asking for "an idea what setting that would be in, say, IE
8"?

IE 6 on Windows XP (with no SP??) and Adobe Reader (that's been the correct
name for years) version 9 sounds like a somewhat odd combination, but if it
works, so...

I'd primarily look for Adobe Reader settings. You might find a setting that
tells that every document be opened in a new window, or something.

Quote:
I have no access to her server to see it for myself.
Server?

Quote:
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).
But you didn't give a URL that could have been used to determine the Mime
type.

--
Yucca, http://www.cs.tut.fi/~jkorpela/

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.