Object does not support this action 'win = new Window (name, parameters)' only in IE11

0

This excitement jumps me when trying to open a popup, before it worked, it has been when updating the version of prototype.js and scriptaculo.us. In Chrome, Firefox works perfectly, but in IE11 it does not. Thanks in advance

function com_doWindow(url, topP, leftP, widthP, heightP) {

var args = arguments.length;
var topValue = 30;
var leftValue = 30; 
var widthValue = 700;
var heightValue = 500;

if (args > 1) {
    topValue = topP;
}
if (args > 2) {
    leftValue = leftP;
}
if (args > 3) {
    widthValue = widthP;
}
if (args > 4) {
    heightValue = heightP;
}           

win = open.window('Busqueda', {className:"alphacube", top:topValue, left:leftValue, width:widthValue, height:heightValue, opacity:1, resizable: false, minimizable: false, maximizable: false, closable: true});
WindowCloseKey.init();

win.setURL(url);

// para que la ventana modal no se pueda mover fuera de la pantalla
// cada numero indica el numero de pixels que se dejan de margen
//win.setConstraint(true, {left:0, right:0, top: 30, bottom:10});

win.setDestroyOnClose();
win.show(true);     

}

    
asked by ZESO C.M 04.12.2018 в 13:39
source

0 answers