我在Lightbox iframe里面有一个按钮。如何通过单击该按钮来关闭该iframe?
我的代码如下所示:
<p:lightBox id="posetastavkeListaLightBox"
widgetVar="posetastavkeListaLightBoxWidget"
iframe="true" width="900px" height="700px">
</p:lightBox>发布于 2013-02-11 22:09:56
通过this answer连接到Close a lightBox primefaces from iframe Button
<p:lightBox id="light" iframe="true" width="80%" height="80%" widgetVar="dlg">iframe端:
<p:commandButton value="Close" onsuccess="parent.dlg.hide();" ajax="true" process="@none" />https://stackoverflow.com/questions/14813642
复制相似问题