Phpcms Comment Box iframe not adaptive problem

Source: Internet
Author: User

Issue background:

Before the time to change the site's IP address, changed to 127 beginning. But when co-development, others use localhost.

Results in the use of comments when the IFRAME is not self-adaptive, looked at the source code V9 itself has written the IFrame adaptive method, and in the previous project a little bit of a problem.

So, what's the problem?

Problem clue:

In the Firebug console accidentally found reported a mistake, said Js.html can't find, and js.html address is the beginning of localhost

Js.html is a V9JS station group across the domain of a file (do not know what meaning), in the V9 root directory

Here's the code:

<HTML><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" /><Head><title>V9 JS Station group cross-domain</title></Head><Bodyonload= "A ()"><Scripttype= "Text/javascript">functionA () {varQ=Location.search.replace ('?',"'). Split ('|'); if(Top.document.getElementById ('Comment_iframe')) Top.document.getElementById ('Comment_iframe'). Height=(q[0] ?q[0] : '0'); if(Top.document.getElementById ('Comment')) Top.document.getElementById ('Comment'). InnerHTML=(q[1] ?q[1] : '0');}</Script></Body></HTML>

Problem solving:

Found js.html inside used to Comment_iframe, that is, the review iframe, so the path back to Localhost,ok!

Phpcms Comment Box iframe not adaptive problem

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.