开发者

simplemodal - IE8 $.support.boxModel is not NULL and no object

开发者 https://www.devze.com 2022-12-26 17:15 出处:网络
I try to use the simplmodal script from: http://www.ericmmartin.com/projects/simplemodal/ I got this error $.support.boxModel is not NULL.. in IE8.

I try to use the simplmodal script from: http://www.ericmmartin.com/projects/simplemodal/

I got this error $.support.boxModel is not NULL.. in IE8.

jquery.simplemodal-1.3.4.min.js?F

This is my implementation scipt.. what I have to change to开发者_如何学编程 avoid this error?

function loadIframe(url){
  $.modal('<iframe src="' + url + '" height="700px" width="600px" scrolling="no">', {
    containerCss:{
        backgroundColor:"#fff",
        borderColor:"#333",
    },
    overlayClose:true,
    opacity:70,
    overlayCss: {
        backgroundColor:"#000"
    },
    onOpen: function (dialog) {
    dialog.overlay.fadeIn('slow', function () {
        dialog.container.toggleClass("preloader"); 
        dialog.data.hide();
        dialog.container.fadeIn('slow', function () {
          dialog.container.toggleClass("preloader");
          dialog.data.slideDown('slow');
        });
        });
    },
    onClose: function (dialog) {
    dialog.data.fadeOut('slow', function () {
        dialog.container.slideUp('slow', function () {
            dialog.overlay.fadeOut('slow', function () {
                $.modal.close(); // must call this!
            });
        });
      });
    }
  });
}

$(document).ready(function(){
  $("img").click(function(){
  var baseurl = location.host;
  var url = $(this).attr("target");
  var url = 'http://' + baseurl + url;
  loadIframe(url);
  });
});


I have a fix tht I need to release. Until then, you can edit SimpleModal and change:

$.support.boxModel

to:

$.boxModel

-Eric

0

精彩评论

暂无评论...
验证码 换一张
取 消