html嵌套iframe如何?等iframe頁面載入完進行下一步調用

來源:互聯網
上載者:User

標籤:html   js   java   

</pre>如果想在你的html裡面顯示一張圖片,或者顯示一個報表,經常會在裡面嵌套iframe,當我們點查詢報表時,在報表顯示過程中,我們想做個遮罩層,提示等待...但是報表顯示出來後,我們如何把遮罩層去掉,讓報表更好的展示呢?<p></p><p>我就用代碼來解釋一個例子吧:</p><p></p><pre code_snippet_id="486855" snippet_file_name="blog_20141017_2_341953" name="code" class="html"><div align="left" style="height: 100%" id ="benefitnotice_report"><iframe id="benefitnotice_iframe" width="100%" height="90%" frameborder="0" ></iframe></div>

這是在html的div裡面嵌套一個iframe

發送url顯示報表的js如下:

var id ="#benefitnotice_report";showWaiting('正在載入報表' , null, id);//遮罩層調用src=src+"&aic1621="+aic1621+"&aic1622="+aic1622+"&aae140="+aae140+"&aaf101="+aaf101+"&aaz070="+aaz070+"&aac031="+aac031;$("#benefitnotice_iframe").attr("src",src);
報表顯示後,去掉遮罩層:

$("#benefitnotice_iframe").load(function(){           closeWaiting("#benefitnotice_report");    }); 



html嵌套iframe如何?等iframe頁面載入完進行下一步調用

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.