Topic: (EDIT: Resolved)Two iFrames displaying the same content

I don't know exactly how or why, but after adding in [allowtransparency="true"] and [frameborder="0px"] into the iframe codes, the glitch stopped and it's displaying the content properly. Very weird. hmm

At any rate, thanks for the help! big_smile

Original post:

Hello!

Well, the problem I'm having is I want to have more than one iFrame, each below the other, displaying different content from different sources.
For some reason, the second iFrame listed displays the src of the first one, but then this  doesn't occur for the third. It's very weird. yikes I've tried to find a solution through a google search like I always do, but I couldn't find what I needed.

These iFrames are also in a table cell, would that affect anything? I would hope not, because it was a pain to figure out how to get the formatting the way I wanted to begin with. X(
I've tried putting blank iframes in between the first and third, but is always shows the first source code.
I've tried horizontal rules and page breaks to divide the two, nothing worked though.

Here's all of the code I am using for the iframes:

<iframe id="recentnews" width="500px" height="100%" src='firstsource.htm'></iframe>
          <hr>
    <iframe id="previousnews" width="500px" height="100%" src="secondsource.htm"></iframe>

And the CSS I'm using to keep the borders off:

        <style type="text/css">
iframe {
border: 0px solid #fff;
}
.central-1 {
position: relative;
width: 500px;
border:0px;
}
</style>

(EDIT) I've also tried putting it in a separate table cell, but the same thing occurs.

I really appreciate any help given! big_smile
-Raven

Last edited by rsrwebs (2009-07-31 01:23:12)

Re: (EDIT: Resolved)Two iFrames displaying the same content

You have single quotes in the first statement
src='firstsource.htm'

and double quotes in the second.
src="secondsource.htm"

This may be the source of your problems.

Re: (EDIT: Resolved)Two iFrames displaying the same content

I actually tried that, but it didn't effect anything.

Re: (EDIT: Resolved)Two iFrames displaying the same content

Try double quotes for all of them as Virtual's post didn't say which is preferred.