Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/03/2012, 20:02
ari2006
 
Fecha de Ingreso: noviembre-2006
Mensajes: 14
Antigüedad: 17 años, 5 meses
Puntos: 0
cerrar iframe y recargar ventana padre

Hola, estoy usando este codigo para cargar Iframe en Dialog JQuery UI el cual me muestra una ventana tipo popup perfectamente:
Código:
<script type="text/javascript">
    $(document).ready(function() {
         $(function() {

            $("a.dialog_link").click(function(e){
                e.preventDefault();
                var url = $(this).attr('href');
                var iframe = $('<iframe   src="'+ url +'"  />');

                iframe.dialog({
                    autoOpen: true,
                    title: "Reportes",
                    width: 989,
                    height: 500,
                    modal: true,
                    resizable: false,
                    buttons: {
                        "Cerrar": function() {
                            $(this).dialog('close');
                        }
                    }

                }).width(989 - 12).height(500 - 15);
            });

        });
    });

</script>
En este popup muestro un formulario, el tema es que al enviar el formulario y procesarlo por php quiero que automaticamente ese popup se cierre y recargue la ventana padre, alguien me podría explicar como hacerlo ya que estoy probando y no encuentro la solución.

Gracias
Ariel