2013-07-16 3 views
0

내가 iframe을 함께 구체적인 웹 페이지를로드하려고 : 로드 전체 웹 페이지

<!DOCTYPE html> 
<html> 
    <head> 
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
     <title></title> 
    </head> 
    <body> 
     <iframe id="frame" src="http://www.euronics.ee/" frameBorder="0" width="1000px" height="700px"></iframe> 
    </body> 
</html> 

는 왜 전체 페이지를로드 할 수 없습니다. 시체 만로드합니까? 내가 시도하면 잘 다른 페이지를로드합니다.

+5

* 구체적인 웹 페이지 * 란 무엇입니까? –

+0

http : // www.euronics.ee' – user2301515

+0

시체 이외에 무엇을 보여주고 싶습니까? : D 제목 세트가 없으므로 표시되지 않습니다. –

답변

5

당신은 사이트 코드, 당신이 볼 수 있는지 확인하는 경우 :

<script type="text/javascript"> 
      //This block of javascript checks if the current page is opened in a popup IFrame 
      //and if this is true - closes popup and reloads parent window. 
      //We use Popup template for popup windows and only this template is accepted for popups. A window with any other template will be closed immidiately. 
      //This also solves the problem with redirecting to parent after user has logged in via Login popup. After loggin in user is redirected back to My Account page 
      //which in turn uses Audio template thus immidiately gets closed and parent gets reloaded. 
      if (self != top) { 
       $("body").empty(); //also clears body to avoid showing page content while the page is closing 
       parent.location.reload(); 
      } 
</script> 

를 그리고 그것이 내가 생각 당신은 iframe의 사이트를로드 할 수 없습니다 그 이유는. 누구나 자신의 사이트가 iframe의 다른 사이트에 게재되는 것을 좋아하지 않습니다. 나는 그들이 단지 진짜 방문자를 원한다고 말할 것이다. 내가 jsfiddle에이를 때

0

, 나는 다음과 같은 콘솔 오류가 발생합니다 : 는 "http://fiddle.jshell.net"원점 프레임에 액세스 "http://www.euronics.ee"원점 프레임을 차단. 프로토콜, 도메인 및 포트가 일치해야합니다. 로드하는 사이트에 https 요청이있을 수 있습니까?