本文介绍了弹出窗口,Web应用程序,可访问性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你能帮我搞清楚如何处理弹出窗口吗?


有时我们开发的网络应用程序弹出窗口很有意义

完全一样他们在传统的本地安装的

应用程序界面中有意义的原因。我理解有些人反对,因为残疾与无关,以及生成新浏览器窗口的链接。

我不知道他们的基础是什么反对意见是,但我想知道每次他们的文字处理应用程序提示他们是否同一个人对象

有关对话框的信息(用于字体选择,保存文件,以及

等等)而不是从主窗口中删除他们的文件和

用提示替换它。或者是否让他们困扰的是,帮助

命令启动一个单独的窗口,而不是再次用帮助内容替换他们正在处理的

文档。 />

无论如何,弹出窗口对于网络界面应用程序非常有用,因为它们完全相同。但现在,了解可访问性问题,我已经读过,对于使用自适应软件进行视觉损害的人来说,弹出窗口很麻烦。我原本以为向这些用户提供

正面指示可能就足够了,链接会打开一个单独的窗口,

在新窗口中显示它*是*一个新窗口,并在新窗口中提供一个

消息,表明它应该关闭以返回主窗口




显然,这还不够,弹出窗口是不允许的。试图找出

*为什么*有一个彻头彻尾的禁令,我在谷歌小组中发现一个帖子解释

,这是一个皇家的痛苦后面找到回到你网站开始产生新窗口时开始的
的路。在MS Windows中,你不能假设当你杀死新窗口时(Alt-F4或其他什么)你将会回到以前的窗口。
将会回到之前的窗口。例如,操作系统可能会决定将

桌面作为重点。


如果我提供上述提示,这就是鞋底

剩余异议?如果是这样,可以通过在弹出窗口的顶部放置一个链接来解决这个问题:返回主窗口,并使用脚本

来明确在关闭弹出窗口之前激活主窗口?


理论上也不允许使用脚本 - 但我知道只有当它导致更改时它才会是b / b


禁用用户无法识别的界面。这里使用脚本专门用于* make *更改

对用户可辨别。这会改变一些事情吗?


如果这些考虑因素都不足以覆盖

弹出窗口的一般禁令,那么一个人做什么呢,记住该应用程序

* * *必须以直观的方式运行

用户?


- -

Harlan Messinger

从我的电子邮件地址中删除第一个点。

Veuillez?ter le premier point de mon adresse de courriel。

解决方案




现代

浏览器中的页面弹出窗口中打开脚本很容易,这些浏览器优雅地退回到较旧的浏览器中,不需要

使用弹出窗口 - 当然不使用它们的主要原因是,

这些天很多人都关掉了它们。


吉姆。

-

comp.lang.javascript常见问题 -





我''对于基于网络的应用程序而言,适用不同的规则。例如。如果它是某种特定于浏览器的DHTML内容管理系统,那么它可能具有内联窗口的意义。 (即

HTML样式中的伪窗口)。但这些主要用于内联网。在正常的网页

背景下,弹出窗口真的很糟糕。他们很讨厌。


-

Google Blogoscoped




我会说网络基于应用程序,适用不同的规则。例如。如果它是某种特定于浏览器的DHTML内容管理系统,那么拥有内联窗口可能是有意义的。 (即HTML风格的伪窗口)。但这些主要用于内联网。在正常的网络环境中,弹出窗口真的很糟糕。他们很讨厌。




我回过头来问他们有什么烦恼。我当然明白,对于Orbitz和Classmates广告来说,无法阻止你在网站上做你的b / b
业务是多么令人讨厌。我不明白什么是令人讨厌的弹出窗口

界面,它可以帮助你完成你正在尝试的工作。例如,

表示一个网站将其主要文本中的技术术语超链接到弹出的词汇表中的

定义。如果词汇表位于较小的单独窗口中,则可以轻松访问,并允许您浏览整个

词汇表。您还可以享受不丢失材料的好处

您正在阅读。为什么这很烦人?我不是要求讨价还价 - 我真的不明白。它主要是模式

问题,还是别的什么?


我很欣赏Jim Ley指出的模态问题。 (毕竟,

如果连模态窗口都是禁忌,那么浏览器甚至无法向你显示
给你一个对话框来表达你的偏好而不是允许弹出窗口!)

但传统的应用程序有效地使用了大量的无模式

对话框 - 扩展包括菜单和工具栏。


Can you help me figure out what to do about popups?

Sometimes we develop web applications where popups make very good sense for
precisely the same reasons they make sense in traditional locally-installed
application interfaces. I understand some people object, on grounds having
nothing to do with disabilities, to links that generate new browser windows.
I don''t know what the basis of their objection is, but I wonder whether the
same people object every time their word processing application prompts them
for information with dialog boxes (for font selection, saving the file, and
so forth) rather than removing their document from the main window and
replacing it there with the prompt. Or whether it bothers them that the Help
command launches a separate window rather than, again, replacing the
document they''re working on with the Help content.

Anyway, popups are useful for web-interface applications for exactly the
same reasons. But now, learning about accessibility issues, I have read that
popups are troublesome for people using adaptive software for visual
impairments. I would have thought that it might suffice to provide a
positive indication to such users that a link will open a separate window,
to indicate in the new window that it *is* a new window, and to provide a
message in the new window indicating that it should be closed to return to
the main window.

Apparently, that''s not enough, and popups aren''t allowed. Trying to find out
*why* there''s an outright ban, I found in Google Groups a posting explaining
that, "It is a royal pain in the posterior to find your way back to where
you started when sites start spawning new windows. In MS Windows, you
cannot assume that when you kill the new window (Alt-F4 or whatever) you
will go back to the previous windows. The OS might decide to give the
desktop the focus, for example."

If I provide cues such as those I mentioned above, is this the sole
remaining objection? If so, can this be overcome by placing a link at the
top of the popup that reads, "Return to main window", and which uses script
to explicitly activate the main window before closing the popup?

Theoretically script is also not allowed--but I had understood that that was
only if it caused changes in the interface that weren''t discernible to the
disabled user. The use of script here is specifically to *make* a change
discernible to the user. Does that change things?

If none of these considerations is sufficient to override the general ban on
popups, then what does one do instead, keeping in mind that the application
*also* has to operate in a manner that will be intuitive to the sighted
user?

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ?ter le premier point de mon adresse de courriel.

解决方案



It''s easy enough to use script to open in page popups in modern
browsers which falls back gracefully in older ones, there''s no need to
use popups - the main reason not to use them of course, is that too
many people have them turned off these days.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/




I''d say for web-based applications, different rules apply. E.g. if it''s
some kind of browser-specific DHTML content management system, it might
well make sense to have "inline windows" (that is, pseudo-windows in
HTML style). But those are for intranets mostly. In a normal web
context it''s really bad to have pop-ups. They''re annoying.

--
Google Blogoscoped
http://blog.outer-court.com




I''d say for web-based applications, different rules apply. E.g. if it''s
some kind of browser-specific DHTML content management system, it might
well make sense to have "inline windows" (that is, pseudo-windows in
HTML style). But those are for intranets mostly. In a normal web
context it''s really bad to have pop-ups. They''re annoying.



I''m back to asking what''s annoying about it. I certainly understand what''s
annoying about Orbitz and Classmates ads preventing you from doing your
business on a web site. I don''t understand what''s annoying about a popup
interface that assists you with the work you''re trying to do. For example,
say a web site hyperlinks technical terms within its main text to their
definitions in a glossary that pops up. If the glossary is in a smaller,
separate window, it is readily accessible and lets you browse the entire
glossary. You also have the benefit of not losing your place in the material
you were reading. Why is that annoying? I''m not asking to be
argumentative--I really don''t understand. Is it primarily the modality
issue, or is it something else?

I do appreciate the modality issue, which Jim Ley pointed out. (After all,
if even modal windows were taboo, then the browser wouldn''t even be able to
show you a dialog on which to express your preference not to allow popups!)
But traditional applications effectively use plenty of modeless
dialogs--which by extension includes the menus and the tool bars.


这篇关于弹出窗口,Web应用程序,可访问性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 02:30