javascript - Pop Up Window in Symfony 2 and Parent Window -


i need create new pop window size specified in symfony 2 form

in php, create php , javascript. i don´t know how automatic update parent window completing form of emerging child window .

parent window

<script type="text/javascript"> //<![cdata[ self.name = "ventanaprincipal"; //]]> </script> </head> <body> <?php  <a href="#" onclick="window.open('ventanahija.php','ventanauno','width=200,height=200,scrollbars=no'); return false;">abrir ventana hija</a> </body> 

popup window

<script type="text/javascript"> //<![cdata[ function recargarprincipal(){     window.open('principal.php?salir=gracias','ventanaprincipal'); self.close(); } //]]> </script> </head> <body> <a href="#" onclick="recargarprincipal();return false;">procesar</a> </body> 

does know how in symfony 2?


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -