[Original] solving the blank page loading problem in the iframe window in wbox of IE6

Source: Internet
Author: User

Recently, in the project test, the iframe window is displayed in wbox. The page loading failure under ie6 leads to a blank page. However, the page source code shows that the page is only loaded and stops when it is not loaded, I searched the internet for compatibility issues related to the iframe ie6 and [reprinted] The iframe under ie6. There are many problems. -Izumi-there are as many as eight types in the blog, oh buy a license! Ie6 what do you mean to me! So I tested it one by one and finally loaded the blank space at the ie6 pop-up layer, right-click the page, and refresh the page! Therefore, there are many problems with iframe under [reprinted] ie6. -Izumi-for the first entry in the blog, the src of iframe needs to be loaded twice, so the wbox is modified, the getframe method is added, and then the showbox () page is called () then, call getframe Based on the browser version for repeated loading.

The wbox. js code is as follows:

This. getFrame = function () {return $ (this). find ('iframe [name = wBoxIframe] ');}

 

Call Page code:

Wbox. showBox (); var ifr = wbox. getFrame (); // get iframe if (getbrowser () {ifr. load (); // call the load event to repaint the title style document of the window. frames ['wboxiframe']. location. reload (); // reload the url of the iframe object}

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.