繁体   English   中英

在关闭的fancybox子iframe上,我想在不重新加载父级的情况下更新父级屏幕上的文本框值

[英]On close fancybox child iframe I want to update my textbox value on the parent screen without reloading parent

我在页面1(父页面)中有一个表单,当用户按下单选按钮时,出现了花哨框iframe页面(孩子),经过处理后我在其中获取了一个值。

我想在关闭页面2后将该值传递给父页面1而不重新加载它,因为我不希望我的用户重新输入表单值,但是我只想以任何格式显示该值,这可能是div中打印的文本框或消息。

谢谢

我相信您要做的是将数据从子iframe传递到父iframe。 您可以参考以下文章: http//www.roseindia.net/java/pass-value-example/pass-value-from-iframe-parent.shtml 希望能帮助到你!

使用onClosed事件处理程序,请参阅http://fancybox.net/api

$("a#fancybox").fancybox({
  'onClosed': function (){
     /* Whatever you want to do */
  },
});

暂无
暂无

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

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