PDF“文件下载”窗口? [英] PDF "File Download" window?

查看:59
本文介绍了PDF“文件下载”窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在许多网站或网页(包括我自己的主页)上点击

某些链接将开始下载PDF文件,有时没有

作者提供任何在页面文本中警告这将发生(虽然在某些 - 所有? - 浏览器中的下一个链接

行在底部浏览器窗口可能显示下一行是

a" .pdf" file)。


我最近在一个页面上点击了链接带来了一个小的

文件下载在PDF文件上显示som信息的窗口和

允许选择实际调用下载或返回

原始页面。


是否有一些特殊的HTML功能我还没有找到,可以用

来实现这一点,所有编码都在一个主页上?或者

是否需要设置一个额外的页面(即文件)来实现

这个文件下载功能?


和同一主题:是否有一个HTML语法创建一个链接

,它只会打击任何浏览器的后退按钮? (因此,无论您如何获得特定页面,点击此链接都会将您带回到您来自的

页面,与使用锚标签相比那点

回到特定页面)


感谢您对新手的疑问耐心等待。

On many web sites or pages (including my own home page) clicking on
certain links will start downloading a PDF file, sometimes without the
author having provided any warning in the text of the page that this is
going to happen (although in some -- all? -- browsers the "next link"
line at the bottom of the browser window may show that the next line is
a ".pdf" file).

I was recently on a page in which clicking on a link brought up a small
"File Download" window which displayed som info on the PDF file and
allowed a choice of actually invoking the download or returning to the
original page.

Is there some special HTML capability I''ve not yet found that can be
used to implement this, with all coding right on a single main page? Or
does it require setting up an additional page (i.e., file) to implement
this "File Download" capability?

And on the same subject: Is there an HTML syntax that creates a link
that will just punch any browser''s Back button? (so that no matter how
you get to a specific page, clicking this link will take you back to the
page you came from, as contrasted to using an anchor tag that points
back to a specific page)

Thanks for patience with novice queries.

推荐答案

AES / newspost写道:
AES/newspost wrote:
在许多网站或网页(包括我自己的主页)上点击
某些链接将开始下载PDF文件,有时没有
作者在页面文本中提供了任何警告,即这将发生[...]


对。页面作者无法控制是否已下载,显示
或用作卫生纸;她只是链接到它并让你的

浏览器执行

我最近在一个页面上点击链接提出了一个小的文件下载 ;窗口显示PDF文件的som信息,并允许选择实际调用下载或返回
原始页面。

是否有一些特殊的HTML功能我''还没有发现可以用来实现这一点,所有编码都在一个主页面上吗?


我似乎没有相关的页面,但它可能只是链接到的第二页

页面,而第二页链接到实际的PDF文件。

没什么特别的。

和同一主题:是否有一种HTML语法可以创建一个链接
,只会打击任何浏览器'' s后退按钮?
On many web sites or pages (including my own home page) clicking on
certain links will start downloading a PDF file, sometimes without the
author having provided any warning in the text of the page that this is
going to happen [...]
Right. The page author has no control over whether it''s downloaded,
displayed, or used as toilet paper; she just links to it and lets your
browser do
I was recently on a page in which clicking on a link brought up a small
"File Download" window which displayed som info on the PDF file and
allowed a choice of actually invoking the download or returning to the
original page.

Is there some special HTML capability I''ve not yet found that can be
used to implement this, with all coding right on a single main page?
I haven''t seem the page in question, but it was probably just a second
page being linked to, and the second page linked to the actual PDF file.
Nothing special.
And on the same subject: Is there an HTML syntax that creates a link
that will just punch any browser''s Back button?




为什么要这样做?您的访问者知道如何使用他的浏览器的

后退按钮;为什么他需要另一个?



Why do you want to do that? Your visitor knows how to use his browser''s
back button; why does he need another one?


在文章< 2r ************* @ uni-berlin.de>中,

Leif K-Brooks< eu ***** @ ecritters.biz>写道:
In article <2r*************@uni-berlin.de>,
Leif K-Brooks <eu*****@ecritters.biz> wrote:
AES / newspost写道:
AES/newspost wrote:
在许多网站或网页(包括我自己的主页)上点击
某些链接将开始下载PDF文件,有时没有
作者在页面文本中提供任何警告即将发生[...]
On many web sites or pages (including my own home page) clicking on
certain links will start downloading a PDF file, sometimes without the
author having provided any warning in the text of the page that this is
going to happen [...]



对。页面作者无法控制是否已下载,显示或用作卫生纸;她只是链接到它并让你的
浏览器



Right. The page author has no control over whether it''s downloaded,
displayed, or used as toilet paper; she just links to it and lets your
browser do



如果页面的文字说的是


"。 。 。这里有关于< auto repair>的更多信息[PDF,800K]。 。 。"


其中< auto repair>是可点击的链接,她会有一些警告说

下载速度可能会很慢,具体取决于她的连接速度,并且可能需要花费一些时间才能获得Acrobat插件启动(我的浏览器的插件

由于某种原因加载速度非常慢)。


包含类似的内容[PDF,800K] QUOT;在这种情况下的警告

在我看来是一个小礼貌,至少对于大型PDF来说。


If the text of a page says something like

". . . Here''s some more info on <auto repair> [PDF,800K] . . ."

where <auto repair> is the clickable link, she''ll have some warning that
the download may be slow, depending on her connection speed, and it may
take some time for the Acrobat plug-in to start up (my browser''s plug-in
is very slow to load for some reason).

Including something like the "[PDF,800K]" warning in a case like this
seems to me to be a small courtesy, at least for large PDFs.

在同一主题上:是否有一个HTML语法创建了一个链接
,它只会打开任何浏览器的后退按钮?
And on the same subject: Is there an HTML syntax that creates a link
that will just punch any browser''s Back button?



为什么你想要要做到这一点?您的访问者知道如何使用他的浏览器的后退按钮;为什么他需要另一个?



Why do you want to do that? Your visitor knows how to use his browser''s
back button; why does he need another one?



为什么不呢?没有伤害;可能对复杂的网站有用;让用户

将注意力集中在页面内容上;如果放置在某些

的位置,可以大大减少鼠标旅行所需的数量。

go back;并且可以允许浏览器的工具栏关闭,

在某些情况下提供更多有用的屏幕空间。


所以,是否有这样的HTML命令? (你暗示暗示

每个浏览器都有一个后退按钮;它可以用HTML触发吗?)


Why not? Does no harm; could be useful on a complex site; lets the user
keep their attention focused on the page content; if placed in certain
locations, can considerably reduce the amount of mouse travel needed to
go Back; and could allow the browser''s toolbar to be turned off,
providing more useful screen real estate in some cases.

So, is there such an HTML command? (You''ve implicitly implied that
every browser _has_ a back button; so can it be triggered with HTML?)


AES / newspost写道:
AES/newspost wrote:
Leif K-Brooks< eu ***** @ ecritters.biz>写道:

Leif K-Brooks <eu*****@ecritters.biz> wrote:

AES / newspost写道:
AES/newspost wrote:

是否有一种HTML语法可以创建一个只会打字的链接
任何浏览器的后退按钮?
为什么要这样做?您的访问者知道如何使用他的
浏览器的后退按钮;为什么他需要另一个?

Is there an HTML syntax that creates a link that will just punch
any browser''s Back button?
Why do you want to do that? Your visitor knows how to use his
browser''s back button; why does he need another one?



为什么不呢?没有伤害;



Why not? Does no harm;




是的,确实有害。您提供的链接可能根本不起作用。

或者,如果它确实有效,它只能在您的网站上运行。为用户提供新的

功能,仅为您的网站学习,这是一种糟糕的可用性。每个浏览器都有

的后退功能。每个用户似乎都在学习如何快速使用它。

尝试复制它没有意义。

那么,是否有这样的HTML命令?


实际上,没有任何HTML命令。 HTML是一个

标记,而不是编程语言。它描述了一些东西,但没有做任何事情。

(你暗示暗示每个浏览器都有一个后退按钮;所以
可以被触发使用HTML?)



Yes, it does do harm. You''ve provided a link that may not work at all.
Or, if it does work, it will only work on your site. Giving users a new
feature to learn only for your site is bad usability. Every browser has
a back function. Every user seems to learn how to use it, and quickly.
There is no point in trying to duplicate it.
So, is there such an HTML command?
No. In fact, there is no such thing as any HTML command. HTML is a
markup, not programming, language. It describes things, but does not do
anything.
(You''ve implicitly implied that every browser _has_ a back button; so
can it be triggered with HTML?)




您可以尝试使用javascript复制后退按钮。它将是一个脆弱的,可靠的替代真正的后退功能。还想做

吗?然后在一个javascript小组中询问。更好的是,阅读

的档案,例如comp.lang.javascript。你可能会在那里找到答案。


-

Brian(删除无效给我发电子邮件)
http://www.tsmchughs.com/


这篇关于PDF“文件下载”窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆