Error in Internet Explorer 9 (not earlier versions or other browsers) when including jQuery in an iframe

前端 未结 4 1668
灰色年华
灰色年华 2021-01-11 18:46

Basically I have a page that launched a fancybox iframe. In that iframe I also include jQuery. But when I testing it in Internet Explorer 9 it gives me the error <

4条回答
  •  孤城傲影
    2021-01-11 19:24

    The problem was fixed when I removed the SRC attribute from the iframe and I added onOpen event to jQuery's dialog:

    open: function()
      {
        document.getElementById("mainFrame").src = "/login.aspx";
      }
    

提交回复
热议问题