Ajax 页面不支持鼠标滚动
我有一个包含 3 个更新面板的页面...基于 updatepanel1 中的文本框更改,在单击提交按钮之前更新其他面板的模式。
问题是我为文本框创建了 onblur 事件......一旦有回发,一切都会正常工作。但有一种最坏的情况,即用户更改文本框并使用鼠标滚动条并单击提交按钮。在这种情况下(因为 onblur 事件永远不会发生)我无法更新第二个和第三个更新面板。
我认为的一个解决方案是,单击提交按钮时,我试图检查以前的模式,但由于设计问题,这对于我的情况来说是不可能的
I had a page with 3 update panels... based on textbox changes in updatepanel1, updates the modes of other panels before they click the submit button.
The problem is I created onblur events for the textboxes...once there is a postback everything works fine. But there is one worst case scenario where the user changes the textbox and uses the mouse scroll bar and clicks the submit button. In this case (as onblur event never occurs) I could not able to update the second and third update panels.
One solution I thought was, onclicking the submit button, I was trying to check the previous mode but this will not be possible for my case because of the design issues
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您始终可以将 Javascript 事件附加到滚动条来触发更新。
伪代码:
You could always attach a Javascript event to the scrollbar to trigger the update as well.
Pseudocode: