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
  #11  
Old   
dorayme
 
Posts: n/a

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






In article <bpKdnaRYFN8-InLXnZ2dnUVZ_uCdnZ2d (AT) westnet (DOT) com.au>,
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.

Without really knowing all about the other browser, one cannot know why
it does this. It is certainly open to browsers to open links in various
ways. In new tabs, in new windows, even to fire up an app and open the
thing in that. Why, Andrew, I once saw a link open in a sink. There was
this scream from the kitchen and...

Here is what an old browser of mine says when I even put in:

<p>This sentence will be interrupted by a picture <iframe
src="../pics/crimson.png">Alternative text for browsers that do not
understand frames.</iframe> for a few pixels.</p>

"Internet Explorer doesn't know how to handle the type of file you have
selected.

"You can choose to save this file to your disk or you can configure a
Helper Application for this file.

"...

"Cancel | Save File As | Plugin | Application

and this is with an image!

In other words, browsers sometimes have to be set up to do the unusual.
Out of the box, they know to display a valid html file in an iFrame.
They will even, out of the box, go to a url that is just an image, and
if it is a jpg, gif or png, it is set to show it in the viewport. But
other than these stock standard situations, the browser often needs
setting up to handle things.

--
dorayme

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

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






dorayme wrote:
Quote:
In article <bpKdnaRYFN8-InLXnZ2dnUVZ_uCdnZ2d (AT) westnet (DOT) com.au>,
Andrew Poulos <ap_prog (AT) hotmail (DOT) com> wrote:

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.


Without really knowing all about the other browser, one cannot know why
it does this. It is certainly open to browsers to open links in various
ways. In new tabs, in new windows, even to fire up an app and open the
thing in that. Why, Andrew, I once saw a link open in a sink. There was
this scream from the kitchen and...

Here is what an old browser of mine says when I even put in:

p>This sentence will be interrupted by a picture <iframe
src="../pics/crimson.png">Alternative text for browsers that do not
understand frames.</iframe> for a few pixels.</p

"Internet Explorer doesn't know how to handle the type of file you have
selected.

"You can choose to save this file to your disk or you can configure a
Helper Application for this file.

"...

"Cancel | Save File As | Plugin | Application

and this is with an image!

In other words, browsers sometimes have to be set up to do the unusual.
Out of the box, they know to display a valid html file in an iFrame.
They will even, out of the box, go to a url that is just an image, and
if it is a jpg, gif or png, it is set to show it in the viewport. But
other than these stock standard situations, the browser often needs
setting up to handle things.
Thanks to everyone who offered advice.

Andrew Poulos

Reply With Quote
  #13  
Old   
John Dunlop
 
Posts: n/a

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



dorayme:

Quote:
[Adrienne Boswell:]

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?
Yes, SGML doesn't allow an attribute to be specified more than once. But
HTML declares the class attribute as CDATA, so almost anything is valid,
and it defines the attribute value as a class name or set of class names.
Members of a set are separated by white space, as in Adrienne's example.

--
John

Reply With Quote
  #14  
Old   
LC's No-Spam Newsreading account
 
Posts: n/a

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



On Tue, 3 Nov 2009, Adrienne Boswell wrote:

Quote:
Personally, I really don't like PDFs that open in a browser window.
I might like them, but I've disabled them and arranged PDF to open in an
independent acrobat window.

For unknown reasons my firefox seems to use a lot of CPU when seeing PDF
"inside". I used to see them in an existing tab, and I could hear the
fans of my workstation speeding up (and "top" showing a high CPU load).
Sometimes it hung. I could hear the fans calming down and the CPU load
going back to normal as soon as I closed the tab.

But sometimes I had to kill the underlying acrobat process. And
sometimes to exit firefox at all (or even reboot).


--
----------------------------------------------------------------------
nospam (AT) mi (DOT) iasf.cnr.it is a newsreading account used by more persons to
avoid unwanted spam. Any mail returning to this address will be rejected.
Users can disclose their e-mail address in the article if they wish so.

Reply With Quote
  #15  
Old   
Sherm Pendley
 
Posts: n/a

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



Andrew Poulos <ap_prog (AT) hotmail (DOT) com> writes:

Quote:
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.
Easy answer: Because the user doesn't like embedded PDFs, and configured
his or her browser to open in a standalone PDF viewer.

sherm--

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

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



Gazing into my crystal ball I observed "Jonathan N. Little"
<lws4art (AT) centralva (DOT) net> writing in news:hcodv8$po8$1 (AT) news (DOT) eternal-
september.org:

Quote:
Adrienne Boswell wrote:

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?

Good - I was hoping someone would get that.

--
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
  #17  
Old   
Jonathan N. Little
 
Posts: n/a

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



Adrienne Boswell wrote:
Quote:
Gazing into my crystal ball I observed "Jonathan N. Little"
lws4art (AT) centralva (DOT) net> writing in news:hcodv8$po8$1 (AT) news (DOT) eternal-
september.org:

Adrienne Boswell wrote:

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?


Good - I was hoping someone would get that.

I will--if I must... ;-)

--
Take care,

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

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

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



Andrew Poulos wrote:
Quote:
rf wrote:

It's a browser setting.

Could you please give me an idea what setting that would be in, say, IE 8?
Regardless of the browser one very plausible scenario is to now have a
browser plugging installed and have PDF set to open in an associated
reader[1] or download only.

[1] The reader does not necessarily have to be Adobe's product, I use
Foxit and there is Evince and others, even OO.

With web design you need to understand that you not have absolute
control of how or with what your content will be displayed.

BTW I do not think I am alone in *really* detesting embedded PDF
content. Information in PDF is always larger than as HTML and for folks
like me with metered access a link with content type and file size noted
is far preferable. Then I can decide whether or not I wish to download
the data. The same goes for all those sites is auto-starting videos as well!


--
Take care,

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

Reply With Quote
  #19  
Old   
David E. Ross
 
Posts: n/a

Default Re: PDF embedded opening in new window - 11-03-2009 , 05:49 PM



On 11/2/2009 1:58 PM, Andrew Poulos wrote:
Quote:
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
As others have replied, please post a URI to the page in question.

I know of one site where some PDF documents display in my existing
browser window and others download for display in the window of a PDF
reader application. This is the result of how the link to the PDF file
is coded.

From other sites, all PDF documents display in my browser window.
Sometimes, this is in a new tab of the window because the Web author
tried to force a new browser window. I have set my browser so that
attempts to create new windows will instead create new tabs within my
current window except for attempts from applications that are not my
browser.

From still other sites, all PDF documents display in the window of my
PDF reader application. This is often a server problem.

And then there are cases where the same link to a PDF document opens
variously in the existing browser window, a new browser window, a new
tab within the existing window, or in the window of a PDF reader
application. These variations depend on how various users have
configured their computers.

--

David E. Ross
<http://www.rossde.com/>.

Don't ask "Why is there road rage?" Instead, ask
"Why NOT Road Rage?" or "Why Is There No Such
Thing as Fast Enough?"
<http://www.rossde.com/roadrage.html>

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

Default Re: PDF embedded opening in new window - 11-03-2009 , 05:50 PM



In article <pan.2009.11.03.10.58.38.601391 (AT) john (DOT) dunlop.name>,
John Dunlop <john (AT) dunlop (DOT) name> wrote:

Quote:
dorayme:

[Adrienne Boswell:]

The class attribute appears twice, that's invalid.

Are you sure?

Yes, SGML doesn't allow an attribute to be specified more than once.
I must send an email to iCab's makers to let them know their CSS/HTML
validation 'face' should scowl a bit. My BBedit in built checker does
not pick it up either. But it is an error, yes.

What actually happens in the browsers I tested was the *second* class
was ignored completely, no matter what rules were specified in them.

--
dorayme

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.