Me estoy poniendo siguiente error al usar el IE 9 (Chrome y Firefox funciona muy bien):SimpleModal no funciona en IE 9 (dentro de marco flotante)
SCRIPT438: El objeto no acepta la propiedad o método " removeExpression' jquery.simplemodal.1.4.2.min.js, línea 16 caracteres 133
simple modal se llama el interior de marco flotante. jQuery.min (1.7.1) está incluido antes de SimpleModal (1.4.2) en el Iframe.
El código responsable de mostrar de diálogo modal:
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 funciona bien para mí en IE9 con jQuery 1.7.1, pero se rompe cuando actualizo jQuery a 1.8.0. ¿Estás seguro de que estabas usando 1.7.1? –
Abrí un problema similar pero ligeramente diferente http://stackoverflow.com/q/12046242/141172 –
@Eric J. No tengo acceso al proyecto ahora. Pero creo que fue 1.7.1. – Ranaghar