2014-03-24 32 views
1

我必須作出一個可拖動的/可動夾的iframe如何移動primefaces iframe燈箱?

燈箱代碼:

<p:lightBox id="draggable" iframe="true" width="910px" height="500px" style="overflow:none" widgetVar="dlg" iframeTitle="flight">   
    <h:outputLink value="/airProject/flightBooking.xhtml" title="flight" styleClass="LinkButton"> 
    </h:outputLink>     
</p:lightBox> 

試過這種(用於移動)

<p:draggable for="draggable" /> 

並且還這個太:

<script type="text/javascript"> 
$(function() { 
    $("#draggable").draggable(); 
}); 
</script> 

但這些移動按鈕不是iframe彈出。那麼當我們移動p:dialog時,如何拖動/移動iframe lighbox彈出窗口?

回答

0

假設您的收藏夾的widgetVar是:lightBoxWV

<script type="text/javascript"> 
    $(function() { 
     PF('lightBoxWV').panel.draggable() 
    }); 
</script> 

希望這有助於。

+0

謝謝,它的作品@Hatem Alimam – islamuddin

+0

@islamuddin不客氣。 –