如何从POP上窗口与父页面进行通信而不回发 [英] How to Communicate From POP up window to parent Page without post Back

查看:92
本文介绍了如何从POP上窗口与父页面进行通信而不回发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个页面中有一个弹出屏幕,我设置了一些值但是当我关闭弹出窗口时设置值,父页面需要回发来设置该值。

最初我使用的是Window .showmodaldialog在chrome中工作得很好,但现在这个功能不起作用,而且正在尝试创建问题的其他东西

I am having a popup screen in one page where i set some value but when i close that popup afer setting value the parent page require post back to set that value.
Initially i was using Window.showmodaldialog which was working fine in chrome but now this feature does not work and rest thing whtaever m trying are creating issue

推荐答案

你真的不需要回发,因为您不想创建弹出窗口。正确的方法是使用所谓的模态弹出概念在同一页面上模拟模态行为。我在最近的文章从零开始的模态弹出窗口中解释了所有内容[ ^ ]。



你不需要使用我的代码(但你可以),因为我还解释了如何做这样的工作并讨论现有的替代方案,例如jQuery Dialog 和第三方jQuery插件。 br $>


-SA
You don't really need a postback, because you don't want to create a popup window. The right approach is emulation of modal behavior on the same page, using so called "modal popup" concept. I explain everything in my recent article Modal Popup From Scratch[^].

You don't need to use my code (but you can), because I also explain how to do such work and discuss existing alternatives, such as jQuery Dialog and 3rd-party jQuery plug-ins.

—SA


这篇关于如何从POP上窗口与父页面进行通信而不回发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆