Skip to content Skip to sidebar Skip to footer

Workaround Of Chrome 37+ Modal Dialog Returnvalue

I have a parent caller page and a modal page, when the modal page is closed, the caller page gets a returnValue from the popup modal page. Even older version Chrome's showModalDial

Solution 1:

You can use the Jquery Modal Dialog Framework

JQuery Modal Dialog Example

$( ".selector" ).dialog({
    close: function( event, ui ) {
        alert('dialog closed');
        return;
    }
});

Or the Fancybox Framework

Fancybox Example

$(".fancybox").fancybox({
    afterClose : function() {
        alert('dialog closed');
        return;
    }
});

Both frameworks provide callback handlers so that you can store or pass values to other functions...

Post a Comment for "Workaround Of Chrome 37+ Modal Dialog Returnvalue"