ich folgende Fehler immer bei der Verwendung von IE 9 (Chrome und Firefox funktioniert gut):SimpleModal funktioniert nicht in IE 9 (innerhalb Iframe)
SCRIPT438: Objekt nicht Eigenschaft oder diese Methode nicht unterstützt " removeExpression‘ jquery.simplemodal.1.4.2.min.js, Zeile 16 Zeichen 133
Einfache Modal innerhalb Iframe aufgerufen. jQuery.min (1.7.1) ist vor SimpleModal (1.4.2) im Iframe enthalten.
Der Code für modalen Dialog zeigt:
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);
}
});
}
Einfache Modal funktioniert gut für mich in IE9 mit jQuery 1.7.1, aber bricht, wenn ich jQuery auf 1.8.0 aktualisieren. Sind Sie sicher, dass Sie 1.7.1 verwendet haben? –
Ich öffnete ein ähnliches, aber etwas anderes Problem http://stackoverflow.com/q/12046242/141172 –
@Eric J. Ich habe keinen Zugriff auf Projekt jetzt. Aber ich denke, es war 1.7.1. – Ranaghar