YUI 对话框和 Javascript 状态缓存
当使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我实际上要回答我自己的问题,因为似乎
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.