是否可以在 JAWS 9 或 10 中强制刷新缓冲区?
有没有某种方法,通过 JAWS 脚本或 HTML,强制 JAWS 刷新其虚拟屏幕缓冲区(通常是 Ins + Esc)?我正在开发一个需要 JAWS 支持的 AJAX 密集型 Web 应用程序,但用户并不特别喜欢“在执行任何操作后点击 Ins+Esc”的解决方案捕捉可能的变化”。
Is there some way, through either JAWS scripting or HTML, to force JAWS to refresh its virtual screen buffer (normally Ins + Esc)? I'm working on an AJAX-heavy web application that requires JAWS support, but the users don't particularly like the solution "hit Ins+Esc after performing any action to catch possible changes".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议使用 ARIA
aria-live
属性 为此。将其放置在包含动态内容的元素上,即使用 JavaScript 更新的元素,当您更改元素的内容时,与该元素相对应的 JAWS 虚拟缓冲区部分将自动更新。Rather than refreshing the entire JAWS virtual buffer and doing something that is JAWS-specific, I would recommend using the ARIA
aria-live
property for this. Place it on an element which contains dynamic content, i.e. which you update with JavaScript, and the portion of the JAWS virtual buffer corresponding to that element will be automatically updated when you change the content of the element.我知道做到这一点的唯一方法是通过 Jaws 脚本。根据脚本文档,
将强制刷新屏幕,并且
仅在需要时刷新。
还有一个 RefreshWindow(Handle) 可以使用给定的句柄刷新窗口,但我不知道它在互联网浏览器中的工作效果如何,因为我不确定您需要的所有内容是否都在一个窗口中。
The only way I know to do this is through Jaws scripting. According to the script documentation
Will force a refresh of the screen and
will only refresh if needed.
There's also a RefreshWindow(Handle) that refreshes the window with the given handle but I don't know how well that will work in an internet browser since I'm not sure weather all the content you need is in one window.