2014-04-30 5 views
1

내부에 세 개의 프레임이있는 .html 파일이 있습니다. 하나는 "제목"프레임이고, 다른 하나는 "메뉴"프레임이고 마지막은 "대상"프레임입니다. 처음에는 공백으로 설정됩니다 (빈 .html 페이지). 누군가가 메뉴 프레임의 링크를 누를 때마다 해당 링크가 대상 프레임 내부에서 열리길 원합니다. 문제는 pdf 파일에서 작동하지 않는다는 것입니다! 이 링크는 내 보관 용 계정에 업로드 한 pdf 파일로 아무런 문제없이 볼 수 있습니다. (단, 보관 용 계정뿐 아니라 계정이 없더라도) 대상 프레임에는 열리지 않습니다. ! 마치 아무 일도 일어나지 않은 것처럼 목표 프레임을 변경하지 않습니다.프레임에서 .pdf 파일 열기?

Dropbox에 문제가 있습니까? 또는 일반적으로 pdf 파일로?

index.html을

<html> 
<head> 
<title> 2014 </title> 
<frameset rows="100,*" frameborder="0" border="0" framespacing="0"> 
<frame name="top" src="title.html"> 
<frameset cols="200,*" frameborder="0" border="0" framespacing="0"> 
<frame name="menu" src="content.html" marginheight="0" marginwidth="0" scrolling="auto" noresize> 
<frame name="lecturesWindow" src="blank.html" marginheight="0" marginwidth="0" scrolling="auto" noresize> 
<noframes> 
<p>This section (everything between the 'noframes' tags) will only be displayed if the users' browser doesn't support frames. You can provide a link to a non-frames version of the website here. Feel free to use HTML tags within this section.</p> 
</noframes> 
</frameset> 
</frameset> 
</head> 
<body> 
</body> 
</html> 

title.html

<html> 
<head> 
</head> 
<body> 
<center> 
<br> 
<h1><u> Title 1234 </u> </h1> 
<br> 
</center> 
</body> 
</html> 

메뉴

<html> 
<head> 
</head> 
<body> 
<center> 
&#9679; The file can be found here: <a href="https://www.dropbox.com/....*.pdf" target="lecturesWindow"> link </a> 
</center> 
</body> 
</html> 

감사합니다!

답변

1

Dropbox는 브라우저가 다른 사이트의 프레임에 표시하지 못하도록 차단하는 x-frame-options: SAMEORIGIN 헤더가있는 파일을 제공합니다.

Dropbox를 사용하여 웹 사이트의 정적 파일을 호스팅하지 마십시오. 그들은 그것을 좋아하지 않으며 그것을 막기위한 조치를 취합니다.

+0

감사합니다! Google 워드 프로세서와 동일합니까? 아마 – TheEmeritus

+0

. 원하는 경우 HTTP 헤더를 직접보십시오. – Quentin