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

Posted by tom007 on Stack Overflow See other posts from Stack Overflow or by tom007
Published on 2010-04-08T11:59:15Z Indexed on 2010/04/08 12:03 UTC
Read the original article Hit count: 287

Filed under:
|
|

Hi, 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);
  });
});

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about simplemodal