i want to display slides (pdf files) in (iframe) without use script











up vote
0
down vote

favorite












i want the same idea in this code without use script element
just subroutine in .aspx.cs page ?
Because I got a problem running when i use script element in content page of page master





<script type="text/javascript">


function display(id) {

hideAndStopAll()
var slide = document.getElementById(id);
slide.style.display = 'block';


}

var ids= ['ch1','ch2','ch3','ch4','ch5','ch6','ch7','ch8','ch9','ch10']

function hideAndStopAll(){

for(i=0;i<ids.length;i++){
var sli = document.getElementById(ids[i]);
sli.style.display='none'
}

}



</script>




<div> <a onclick="display('ch1');"> Slide Ch1 </a> </div> 
<div> <a onclick="display('ch2');"> Slide Ch2 </a> </div>
<div> <a onclick="display('ch3');"> Slide Ch3 </a> </div>
<div> <a onclick="display('ch4');"> Slide Ch4 </a> </div>
<div> <a onclick="display('ch5');"> Slide Ch5 </a> </div>
<div> <a onclick="display('ch6');"> Slide Ch6 </a> </div>
<div> <a onclick="display('ch7');"> Slide Ch7 </a> </div>
<div> <a onclick="display('ch8');"> Slide Ch8 </a> </div>
<div> <a onclick="display('ch9');"> Slide Ch9 </a> </div>
<div> <a onclick="display('ch10');">Slide Ch10</a> </div>


</section>




<iframe id="ch1"  src="ch1.pdf"> </iframe>
<iframe id="ch2" src="ch2.pdf"> </iframe>
<iframe id="ch3" src="ch3.pdf"> </iframe>
<iframe id="ch4" src="ch4.pdf"> </iframe>
<iframe id="ch5" src="ch5.pdf"> </iframe>
<iframe id="ch6" src="ch6.pdf"> </iframe>
<iframe id="ch7" src="ch7.pdf"> </iframe>
<iframe id="ch8" src="ch8.pdf"> </iframe>
<iframe id="ch9" src="ch9.pdf"> </iframe>
<iframe id="ch10" src="ch10.pdf"> </iframe>











share|improve this question




























    up vote
    0
    down vote

    favorite












    i want the same idea in this code without use script element
    just subroutine in .aspx.cs page ?
    Because I got a problem running when i use script element in content page of page master





    <script type="text/javascript">


    function display(id) {

    hideAndStopAll()
    var slide = document.getElementById(id);
    slide.style.display = 'block';


    }

    var ids= ['ch1','ch2','ch3','ch4','ch5','ch6','ch7','ch8','ch9','ch10']

    function hideAndStopAll(){

    for(i=0;i<ids.length;i++){
    var sli = document.getElementById(ids[i]);
    sli.style.display='none'
    }

    }



    </script>




    <div> <a onclick="display('ch1');"> Slide Ch1 </a> </div> 
    <div> <a onclick="display('ch2');"> Slide Ch2 </a> </div>
    <div> <a onclick="display('ch3');"> Slide Ch3 </a> </div>
    <div> <a onclick="display('ch4');"> Slide Ch4 </a> </div>
    <div> <a onclick="display('ch5');"> Slide Ch5 </a> </div>
    <div> <a onclick="display('ch6');"> Slide Ch6 </a> </div>
    <div> <a onclick="display('ch7');"> Slide Ch7 </a> </div>
    <div> <a onclick="display('ch8');"> Slide Ch8 </a> </div>
    <div> <a onclick="display('ch9');"> Slide Ch9 </a> </div>
    <div> <a onclick="display('ch10');">Slide Ch10</a> </div>


    </section>




    <iframe id="ch1"  src="ch1.pdf"> </iframe>
    <iframe id="ch2" src="ch2.pdf"> </iframe>
    <iframe id="ch3" src="ch3.pdf"> </iframe>
    <iframe id="ch4" src="ch4.pdf"> </iframe>
    <iframe id="ch5" src="ch5.pdf"> </iframe>
    <iframe id="ch6" src="ch6.pdf"> </iframe>
    <iframe id="ch7" src="ch7.pdf"> </iframe>
    <iframe id="ch8" src="ch8.pdf"> </iframe>
    <iframe id="ch9" src="ch9.pdf"> </iframe>
    <iframe id="ch10" src="ch10.pdf"> </iframe>











    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      i want the same idea in this code without use script element
      just subroutine in .aspx.cs page ?
      Because I got a problem running when i use script element in content page of page master





      <script type="text/javascript">


      function display(id) {

      hideAndStopAll()
      var slide = document.getElementById(id);
      slide.style.display = 'block';


      }

      var ids= ['ch1','ch2','ch3','ch4','ch5','ch6','ch7','ch8','ch9','ch10']

      function hideAndStopAll(){

      for(i=0;i<ids.length;i++){
      var sli = document.getElementById(ids[i]);
      sli.style.display='none'
      }

      }



      </script>




      <div> <a onclick="display('ch1');"> Slide Ch1 </a> </div> 
      <div> <a onclick="display('ch2');"> Slide Ch2 </a> </div>
      <div> <a onclick="display('ch3');"> Slide Ch3 </a> </div>
      <div> <a onclick="display('ch4');"> Slide Ch4 </a> </div>
      <div> <a onclick="display('ch5');"> Slide Ch5 </a> </div>
      <div> <a onclick="display('ch6');"> Slide Ch6 </a> </div>
      <div> <a onclick="display('ch7');"> Slide Ch7 </a> </div>
      <div> <a onclick="display('ch8');"> Slide Ch8 </a> </div>
      <div> <a onclick="display('ch9');"> Slide Ch9 </a> </div>
      <div> <a onclick="display('ch10');">Slide Ch10</a> </div>


      </section>




      <iframe id="ch1"  src="ch1.pdf"> </iframe>
      <iframe id="ch2" src="ch2.pdf"> </iframe>
      <iframe id="ch3" src="ch3.pdf"> </iframe>
      <iframe id="ch4" src="ch4.pdf"> </iframe>
      <iframe id="ch5" src="ch5.pdf"> </iframe>
      <iframe id="ch6" src="ch6.pdf"> </iframe>
      <iframe id="ch7" src="ch7.pdf"> </iframe>
      <iframe id="ch8" src="ch8.pdf"> </iframe>
      <iframe id="ch9" src="ch9.pdf"> </iframe>
      <iframe id="ch10" src="ch10.pdf"> </iframe>











      share|improve this question















      i want the same idea in this code without use script element
      just subroutine in .aspx.cs page ?
      Because I got a problem running when i use script element in content page of page master





      <script type="text/javascript">


      function display(id) {

      hideAndStopAll()
      var slide = document.getElementById(id);
      slide.style.display = 'block';


      }

      var ids= ['ch1','ch2','ch3','ch4','ch5','ch6','ch7','ch8','ch9','ch10']

      function hideAndStopAll(){

      for(i=0;i<ids.length;i++){
      var sli = document.getElementById(ids[i]);
      sli.style.display='none'
      }

      }



      </script>




      <div> <a onclick="display('ch1');"> Slide Ch1 </a> </div> 
      <div> <a onclick="display('ch2');"> Slide Ch2 </a> </div>
      <div> <a onclick="display('ch3');"> Slide Ch3 </a> </div>
      <div> <a onclick="display('ch4');"> Slide Ch4 </a> </div>
      <div> <a onclick="display('ch5');"> Slide Ch5 </a> </div>
      <div> <a onclick="display('ch6');"> Slide Ch6 </a> </div>
      <div> <a onclick="display('ch7');"> Slide Ch7 </a> </div>
      <div> <a onclick="display('ch8');"> Slide Ch8 </a> </div>
      <div> <a onclick="display('ch9');"> Slide Ch9 </a> </div>
      <div> <a onclick="display('ch10');">Slide Ch10</a> </div>


      </section>




      <iframe id="ch1"  src="ch1.pdf"> </iframe>
      <iframe id="ch2" src="ch2.pdf"> </iframe>
      <iframe id="ch3" src="ch3.pdf"> </iframe>
      <iframe id="ch4" src="ch4.pdf"> </iframe>
      <iframe id="ch5" src="ch5.pdf"> </iframe>
      <iframe id="ch6" src="ch6.pdf"> </iframe>
      <iframe id="ch7" src="ch7.pdf"> </iframe>
      <iframe id="ch8" src="ch8.pdf"> </iframe>
      <iframe id="ch9" src="ch9.pdf"> </iframe>
      <iframe id="ch10" src="ch10.pdf"> </iframe>








      asp.net






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 11 at 3:11









      D-Shih

      24.1k61331




      24.1k61331










      asked Nov 11 at 3:01









      samz

      11




      11





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53245483%2fi-want-to-display-slides-pdf-files-in-iframe-without-use-script%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53245483%2fi-want-to-display-slides-pdf-files-in-iframe-without-use-script%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Bressuire

          Vorschmack

          Quarantine