简体   繁体   English

模式弹出窗口不刷新父页面

[英]Modal Popup not refreshing Parent Page

I know this will seem vague and I will work on getting some code posted but wanted to get some initial feedback to see if anyone else has experienced this problem. 我知道这似乎很模糊,我将努力发布一些代码,但希望获得一些初始反馈,以查看是否有人遇到了此问题。 I have a page with a listbox and a button. 我有一个带有列表框和按钮的页面。 When I click the button a modal popup displays a checkbox list that allows the user to select options. 当我单击按钮时,模式弹出窗口将显示一个复选框列表,允许用户选择选项。 At the bottom of the popup I have a "OK" and "CANCEL" button. 在弹出窗口的底部,我有一个“确定”和“取消”按钮。 If the user clicks "OK", the items are saved that the user has selected in the checkbox list, but the parent page does not refresh. 如果用户单击“确定”,则会保存用户在复选框列表中选择的项目,但父页面不会刷新。 I had the parent page refreshing and the listbox displaying the choices made on the modal popup. 我刷新了父页面,并且列表框显示了在模式弹出窗口上所做的选择。 This is happening only part of the time and appears to be on IE8, although I am running IE8, with and without compatibility, and not experiencing this issue. 尽管我正在运行IE8(具有和不具有兼容性),并且没有遇到此问题,但这只是部分时间发生,并且似乎在IE8上。 I have tried running on IE7 and don't see the issue. 我尝试在IE7上运行,但未发现问题。 Thanks in advance. 提前致谢。

这可能不是您要寻找的答案,但如果它在ie 7中正常工作,则应该解决您的问题。将其添加到页面中,它将强制ie8将页面呈现为ie7。

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM