2013-07-24 5 views
0

인쇄 노트를 클릭하면 다른 노트가 팝업 된 것으로 예상됩니다. 내 경우 엔 계속해서 공백으로 나타납니다. (1) 텍스트 영역상위 페이지에서 콘텐츠 가져 오기

<textarea id="sermon_notes" cols="5" rows="5"></textarea> 
<a href="../notes/print/forgiveness/index.html" target="_blank" class="btn_small_cmg">  <span>Print Notes</span></a> 

페이지 (2) 자바 스크립트는이 페이지에 쓴 정보를 내려고와 (

페이지 :

좀 더 세부 사항을 제공해야하는지 알려 주시기 바랍니다 1) 페이지 (2)에 표시 할 수 있습니다.

<html> 
    <head> 
    <title>Media | New Foundation Christian Ministries </title> 

     <link rel="stylesheet" href="../css/popout.css" media="screen" type="text/css" /> 
     <link rel="stylesheet" href="../css/print.css" media="print" type="text/css" /> 

    </head> 

    <body class="about"> 
     <div class="wrap"> 
    <div class="header"> 
    <a href="javaScript:window.print();" class="print"><span>Print</span></a> 
    <h1><img src="../images/logo.png" alt="New Foundation Christian Ministries" />  </h1> 
</div> 
<div class="content"> 
     <div class="page_header"> 
     <h2>Notes</h2> 
    </div> 
    <h1></h1> 
     <h1>some text</h1> 
     <small>ate</small> 

     <br/><br/><br/> 


      <h3>My Notes:</h3> 
      <p> 

      <script type="text/javascript"> 
       // Get the notes from the parent page 
       var message_notes = window.opener.document.getElementById('sermon_notes').value; 
       // Replace out the new line character with a <br> 
       message_notes = message_notes.replace(new RegExp("\\n", "g"),"<br />"); 
       document.write(message_notes); 
      </script> 
      </p> 

</div> 
<div class="footer"> 

    </div> 
</div> 
</body> 
</html> 
+0

jQuery의 위치는 어디입니까? index.html을 비우고 있습니까? – putvande

+0

새 창을 실제로 열지는 않았지만 '공백'은 동일하지 않습니다. – adeneo

+0

이것은 정확하게 내가하려고하는 것이지, 둘 다 작동하지 않는 것 같습니다. http://fellowshipdallas.org/media/player/media/what-we-should-know-about-the-end-times/video/ – user2608501

답변

0

위의 코드 작업은 훌륭합니다. 사실 내 링크에는 http가 포함되어 있지 않지만 파일은 포함되어 있습니다. http가 없으면 작동하지 않으므로 로컬 서버에서 작동하지 않습니다.

도움 주셔서 감사합니다.

관련 문제