window.showModalDialog 页面加载未执行
我实际上正在将页面作为模式对话框加载为 window.showModalDialog("url.aspx")。 第一次弹出模式对话框时,将调用页面加载事件。 当我关闭它并再次调用相同的方法时,控件不会进入页面加载。 相反,该页面会弹出所有控件中的先前值。
我实际上希望每次弹出模式对话框时都会触发 PageLoad。
I am actually loading a page as a modal dialog box as window.showModalDialog("url.aspx"). The first time the modal dialog is poped up the page load event gets called. When i close it and call the same again, the Control does not come to the PageLoad. Instead the page pops up with the previous values in all its controls.
I actually want the PageLoad to be triggered everytime the modal dialog pops up.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
好的....您知道 showModalDialog 是 IE 独有的专有功能吗?
只要您意识到这一点,我认为您可能需要向您使用的网址添加一个唯一的查询字符串值,以避免显示缓存版本。 因此,生成一个随机数并将其附加到 URL,例如 url.aspx?rnd=12237827348273。 这应该会破坏缓存并发出新的请求
ok....you do know showModalDialog is an proprietary IE only feature?
As long as you are aware of this then I think you may need to add a unique querystring value to the url that you are using to avoid ie showing the cached version. So generate a random number and append it to the url e.g url.aspx?rnd=12237827348273. This should bust the cache and make a fresh request
在表单的
InPage
中应用以下指令:Apply following directive in the
InPage
of the form:Firefox 3 支持 https://developer.mozilla.org/en/DOM/window.showModalDialog
Firefox 3 supports https://developer.mozilla.org/en/DOM/window.showModalDialog