Hello, I'm trying to open a modal in google Chrome ... The current application already uses window.showModalDialog for years, it works in IE ... I can not make changes using the html 5 dialog tag, there is some other method or a jquey / javascript function that performs the same and works google Chrome?
NOTE: The window.open method does not meet the need !!
function CredencialEletronica(operacao, paramsInt, paramsDecimal, paramsString, paramsDate, paramsBool)
{
var params = {'CodigoOperacao' : operacao
, 'paramsInt' : paramsInt
, 'paramsDecimal' : paramsDecimal
, 'paramsString' : paramsString
, 'paramsDate' : paramsDate
, 'paramsBool' : paramsBool
, 'date:' : new Date()};
var dualScreenLeft = window.screenLeft != undefined ? window.screenLeft : screen.left;
var dualScreenTop = window.screenTop != undefined ? window.screenTop : screen.top;
width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width;
height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height;
var left = ((width / 2) - (440 / 2)) + dualScreenLeft;
var top = ((height / 2) - (220 / 2)) + dualScreenTop;
var result = window.showModalDialog('nomTela.aspx?' + $.param(params), '', 'Imagens;dialogHeight: 220px; dialogWidth: 440px;resizable: No; status: No;center: Yes; help: No');
if (result == 'Ok') { return true; }
else { return false; }
}