IE9 throws exceptions when loading scripts in iframe. Why?

后端 未结 6 1349
失恋的感觉
失恋的感觉 2020-12-15 03:58

Precondition:

I have an aspx-page with iframe inside. This iframe points to the url handled by MVC on the same site (it\'s hybrid site, both standard ASP.NET and ASP

6条回答
  •  猫巷女王i
    2020-12-15 04:29

    function waitForjQuery(){
        if(typeof jQuery!='undefined'){
            //Do yor stuff!
        }
        else{
            setTimeout(function(){
                waitForjQuery();
            },500);
        }
    }
    waitForjQuery();
    

提交回复
热议问题