META refresh targetting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • helraizer1
    New Member
    • Mar 2007
    • 118

    META refresh targetting

    Hi, I have a site that I'm working on for a project.

    All it consists of is a div of tabbed links and an iFrame. For the specification it needs to flow, like a PowerPoint Presentation. My idea was to use META refresh to move pages after a certain amount of time. Though that moves the entire page and loses layout.

    Would it be possible to target the refresh so it appears in the iFrame, or something similar? Rather than the entire page changing.


    Thanks,
    Sam
  • Death Slaught
    Top Contributor
    • Aug 2007
    • 1137

    #2
    Originally posted by helraizer1
    Hi, I have a site that I'm working on for a project.

    All it consists of is a div of tabbed links and an iFrame. For the specification it needs to flow, like a PowerPoint Presentation. My idea was to use META refresh to move pages after a certain amount of time. Though that moves the entire page and loses layout.

    Would it be possible to target the refresh so it appears in the iFrame, or something similar? Rather than the entire page changing.


    Thanks,
    Sam
    If your wanting something like a slideshow of pics try the JavaScript forum.


    Hope it helps, Death

    Comment

    • helraizer1
      New Member
      • Mar 2007
      • 118

      #3
      Originally posted by Death Slaught
      If your wanting something like a slideshow of pics try the JavaScript forum.


      Hope it helps, Death
      Sorry I wasn't very clear before. I'll try and rephrase it.

      As you know Power Point Presentations can move to the next page after a number of seconds. To do this with HTML I used

      [code=html]
      <meta http-equiv="refresh" content="60; url=nextpage.ht m">
      [/code]

      So that after 60 seconds the page refreshes to the next URL.

      However, the layout of my page is such that there is a div of tabs(links) and an iFrame. All the links target to "frame", which is the iFrame. So the corresponding pages open in the iFrame below the links.

      The only problem is that with the META refresh is that it refreshes the entire page and thus targets the parent window, rendering the links and iFrame pointless.

      Is there any way in HTML to still have/use the 'META refresh' facility but have the next page appear in the iFrame rather than the parent window? Or am I looking for scripting to do that?

      Hope that is more clear.

      Thanks again,
      Sam

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        Putting that meta in the iframe doesn't do that?

        Comment

        • helraizer1
          New Member
          • Mar 2007
          • 118

          #5
          Originally posted by drhowarddrfine
          Putting that meta in the iframe doesn't do that?
          Ah, good point.

          So if I had an iframe

          [code=html]
          <iframe src="mypage.htm ">
          [/code]

          and I put the meta tag in the mypage.htm, would that work. It's worth a try.

          Thanks for that!

          Sam

          Comment

          Working...