打开厚盒弹出窗口时使背景页面可访问(JQuery)
我正在尝试在 asp.net 中创建一个弹出页面,当从另一个 aspx 页面单击时...会以“模式对话框”样式(在 iframe 中)打开。我认为我可以使用“厚盒”J Query 插件来实现这一点,但我的要求之一是打开弹出窗口时背景页面应该是“可访问的”。 还需要制作弹出的拖动山墙。 我在新的 aspx 文件中有弹出网页。我正在尝试使用“厚框”插件打开弹出的 aspx 页面。(它将弹出窗口放入指定宽度和高度的“iframe”中),但我不知道如何使“背景”页面可访问?有什么想法/意见吗?
感谢您的帮助 谢谢
I'm trying to create a pop up page in asp.net, which when clicked from another aspx page...opens up as a 'modal dialog' style (in an iframe). I thought i could use the "thick box" J Query plugin to make that happen, but one of my requirements is that the background page should be 'accessible' while the pop up is opened.
also need to make the pop up drag-gable.
I have the Pop up web page in a new aspx file. I am trying to open up the pop up aspx page using the "thick box' plugin.(Which puts the Popup in an 'iframe' of specified width and height) but I cant figure out how to make the "background' page accessible? Any thoughts/inputs??
Appreciate your help
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的团队选择使用 ColorBox,它是一个 jQuery 插件。它可以使用 iFrame,但我遇到了与您相同的问题。具体来说,当用户登录我们的网站时,我需要一个模式弹出窗口。我需要进行页面传输并访问通用代码,而使用 iFrame 则无法实现这一点。我的解决方案是使用 Microsoft AJAX 工具包中的模式弹出窗口控件。它解决了我访问通用代码的问题,并且能够使用更新面板来模拟 ajax 调用。我建议在演示项目中尝试一下,看看效果如何。
My team opted to use ColorBox, which is a jQuery plug-in. It can use an iFrame, but I ran into the same issue you did. Specifically, I needed a modal popup window when a user logged in to our site. I needed to do a page transfer and have access to common code which was made impossible using an iFrame. My solution was to use the modal popup window control from the Microsoft AJAX Toolkit. It solved my problem of having access to common code and it was able to use an update panel to mimic ajax calls. I would suggest giving it a try in a demo project and see how that goes.