无限滚动模式,同时不破坏“查找[页面上的文本]”行动

发布于 2024-09-30 18:18:22 字数 282 浏览 1 评论 0原文

有关如何在实现无限滚动的同时保留浏览器的查找[页面上的文本]功能的任何想法/提示/答案,尤其是对于文本主题条目(例如 Facebook 墙或无限滚动显示的博客)帖子...)。

我不记得 onFind 等事件。我想您可以观察击键,但这会破坏菜单驱动的查找。显然,搜索表单是直接的,但并不总是直观的答案...用户希望“搜索”整个网站,或者至少超出当前页面,而 /Cmd|Ctrl/-F他们正在查看的当前页面... 随着无限滚动,“页面”的概念被完全打破,甚至比通过 XHR 的动态内容更是如此。

Any ideas/tips/answers on how to keep the browser's Find [text on page] functionality while implementing Infinite Scroll, especially with a text subject matter entries (e.g. Facebook wall, or a blog that infinite scroll displays posts...).

I can't recall an event for onFind or such. I guess you could watch for the keystroke, but that would break menu driven Find. Clearly a search form would be straight forward, but not always the intuitive answer... Users expect to 'search', say, the entire site, or at least beyond the current page, while /Cmd|Ctrl/-F the current page they're looking at... With infinite scroll the concept of 'the page' is entirely broken, more so than even dynamic content through XHR.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文