Ver Mensaje Individual
  #7 (permalink)  
Antiguo 19/11/2015, 13:37
jmg1189
 
Fecha de Ingreso: septiembre-2015
Mensajes: 58
Antigüedad: 8 años, 7 meses
Puntos: 2
Respuesta: problema con ventana dialog

Cita:
Iniciado por mortiprogramador Ver Mensaje

Saludo.
¿Los otros datos se cargan en la ventana dialog?
Sí es así, se podría usar ajax en vez del submit.

Sí se cargan otros datos fuera de la ventana dialog, igual,
el botón submit hará el envío a la ventana madre, tal cual
lo hace actualmente el submit del select.
de ajax si sé menos jajaj.
Pues ya pude solucionar haciendolo de esta forma:

Código Javascript:
Ver original
  1. $(function() {
  2.         $('a.showPopup').click(function(e) {
  3.             e.preventDefault();
  4.             var $this = $(this);
  5.             var horizontalPadding = 15;
  6.             var verticalPadding = 15;
  7.             $('<iframe id="site" src="' + this.href + '" />').dialog({
  8.                 title: ($this.attr('title')) ? $this.attr('title') : 'Site',
  9.                 autoOpen: true,
  10.                 width: 1050,
  11.                 height: 500,
  12.                 modal: true,
  13.                 resizable: false,
  14.                 autoResize: true,
  15.                 show: "clip",
  16.                 hide: "clip",
  17.                 overlay: {
  18.                     opacity: 0.5,
  19.                     background: "black"
  20.                 }
  21.             }).width(1050 - horizontalPadding).height(500 - verticalPadding);
  22.         });
  23.     });

me abre el dialog dentro de un iframe y se ejecuta perfecto, ahora el problema es que se cuando oprima el boton que guarda los datos que se ingresan en el dialog, se cierre el dialog y se actualice la pagina padre.