0 Replies Latest reply on Dec 15, 2013 3:12 PM by Abalone56

    How to change pdf page in an iframe content automatically

    Abalone56

      I open a pdf in my web page with <iframe> and the pdf-option for example #page=2 equals week number 2 of a year.

      How could I change the viewable page as a function of the actual week number of a year (#1 - 52)

      At the moment my html code looks like:

      <div id="tr-inside_anw2">  
          <iframe class="org_pdf_anw"
          src="attendance.pdf#page=2"></iframe>
      </div>

      Is there a way to use a variable for the week number? or is it better to use a javascript "function dayofweek_iframe()"

      which changes the whole iframe content?

      Is there somebody, who know a solution with code? Thanks