在弹出窗口中打开 Spring jsp
我的应用程序需要像 Outlook 邮件这样的解决方案:在父窗口上打开另一个页面作为弹出窗口。该应用程序基于 Spring 3 并使用 jsp。如何在我的应用程序页面中制作弹出窗口,以使其至少在大多数常见浏览器中按预期工作?
我尝试过 target 和 window.open,但没有让它们在 Firefox 中正常工作。
My application needs a solution like Outlook mail: opening an other page as popup window on the parent window. The application is Spring 3 based and uses jsps. How do I make a popup out of my application page in order to make it work as intended at least in most common browsers?
I've tried target and window.open, without getting them work properly in Firefox.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
举个例子,Spring 旅行示例应用程序包含一个通过弹出窗口启动的 jsp。
这显示了如何使用 Ajax 事件修饰链接,以便在单击链接时启动 searchForm.jsp。
Just as an example, the Spring travel sample app contains a jsp which is launched via a pop-up.
This shows how a link is decorated with an Ajax Event to launch searchForm.jsp when the link is clicked.