8
Good morning, I’m trying to open a modal on google Chrome... The current application already uses window.showModalDialog for years, it works in IE... I can not make the changes using the html 5 dialog tag, there is some other method or a jquey/javascript function that performs the same and that 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; }
}
Hello, I answered that same question in another post here. Possible duplicate of 249447
– avsinacio
Hello, as I said there the tag dialog does not suit me
– Gabriel Souza
I read your reply before publishing, it was very good, but does not answer me :/
– Gabriel Souza