YUI 对话框和 Javascript 状态缓存

发布于 2025-01-06 14:31:53 字数 458 浏览 6 评论 0原文

当使用 YUI 对话框中的 YUI 日历 时,Firefox 中不会缓存 js 状态:选择一个日期,它会填充到字段中,导航到另一个页面,然后单击“返回”,表单将被重置。在 IE 中执行相同操作,所选日期将保留。

这个问题的解决方法是什么?

编辑: 看来 YAHOO.util.Event._simpleRemove(window, "unload", YAHOO.util.Event._unload);这张 YUI 票 是解决方法。

When using YUI calendar inside YUI dialog the js state is not cached in Firefox: pick a date, it gets populated into the field, navigate to another page and then click back, the form is reset. Do the same in IE and the selected date will be retained.

What is a workaround to this problem?

EDIT:
It appears that YAHOO.util.Event._simpleRemove(window, "unload", YAHOO.util.Event._unload); per this YUI ticket, is the workaround.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

陌路终见情 2025-01-13 14:31:53

我实际上要回答我自己的问题,因为似乎 YAHOO.util.Event._simpleRemove(window, "unload", YAHOO.util.Event._unload); 实际上是两个浏览器。

I'm actually going answer my own question, because it seems that YAHOO.util.Event._simpleRemove(window, "unload", YAHOO.util.Event._unload); is in fact the answer for both broswers.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文