sto ottenendo seguente errore quando si utilizza IE 9 (Chrome e Firefox funziona alla grande):SimpleModal non funziona in IE 9 (all'interno Iframe)
SCRIPT438: L'oggetto non supporta la proprietà o il metodo ' removeExpression' jquery.simplemodal.1.4.2.min.js, riga 16 caratteri 133
semplice modale viene richiamato all'interno Iframe. jQuery.min (1.7.1) è incluso prima di SimpleModal (1.4.2) nell'Iframe.
Il codice responsabile per la visualizzazione di finestra di dialogo modale:
function OpenContextByClass(cssClass, posY, posX) {
var winHeight = $(window).height();
var winWidth = $(window).width();
$('.' + cssClass).modal({
overlayClose: true,
position: [posY, posX],
appendTo: 'form',
onOpen: function (dialog) { dialog.overlay.fadeIn('fast', function() { dialog.container.slideDown('fast', function() { dialog.data.fadeIn('fast'); }); }); },
onShow: function (d) {
var self = this;
self.container = d.container[0];
var title = $('.' + cssClass, self.container);
title.show();
$('.' + cssClass, self.container).show();
setTimeout(function() {
var currentPositionX = posX;
var currentPositionY = posY;
var currentWidth = $('.' + cssClass, self.container).width() + 50;
var currentHeight = $('.' + cssClass, self.container).height() + 50;
posY = (currentPositionY + currentHeight) < winHeight ? currentPositionY : (winHeight - currentHeight);
posX = (currentPositionX + currentWidth) < winWidth ? currentPositionX : (winWidth - currentWidth);
d.container.animate(
{ left: posX, top: posY },
500,
function() {
$('.' + cssClass, self.container).show();
}
);
}, 550);
}
});
}
Simple Modal funziona bene per me in IE9 con jQuery 1.7.1, ma si interrompe quando aggiorno jQuery a 1.8.0. Sei sicuro che stavi usando 1.7.1? –
Ho aperto un problema simile ma leggermente diverso http://stackoverflow.com/q/12046242/141172 –
@Eric J. Non ho accesso al progetto ora. Ma penso che sia stato 1.7.1. – Ranaghar