Forum Moderators: open

Message Too Old, No Replies

"back" and "forward" Change the Iframes seperate

I want the "back" button to change all Iframes at the same time

         

Noyd

12:48 am on Feb 17, 2005 (gmt 0)

10+ Year Member



Hi @ll
Im using 3 Iframes on my website. Everything works fine. When i click on a link which changes all 3 sources of the Iframes but after clicking on the "back" button in the IE it doesnt change the sources at the same time and instead one at a time (1Click 1Frame). Well you can tell what im going for, all the sources should change at the same time.
Heres the script im using.

function threeiframes(iframe1,page1,iframe2,page2,iframe3,page3) {
eval("parent."+iframe1+".location='"+page1+"'");
eval("parent."+iframe2+".location='"+page2+"'");
eval("parent."+iframe3+".location='"+page3+"'");
}

/Body
<td colspan="9" rowspan="3" id="Content"><iframe name="content" frameborder="0" width="307" height="352" src="TXT/Hometxt.htm" allowtransparency="true"></iframe></td>

I appreciate any typpa help.

tedster

1:04 am on Feb 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello Noyd, and welcome to the forums.

That is exactly the way the Back Button works on IE with any kind of frames. The only way you got all three iframes to change their source document at once was with some kind of script, correct?

The Back Button is not hooked into any script -- it just follows the browser's history list. So it only "knows" what pages were loaded, where, and in what order. All three iframes did not actually change at the same time, they were reloaded one by one.

Noyd

9:47 pm on Feb 17, 2005 (gmt 0)

10+ Year Member



^hmm i see. Ill use one frame then, thought there is a code for it. Thx alot.

vkaryl

2:01 am on Feb 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I saw somewhere once upon a time a javascript which would change all your frames at the same time. That would work only for "forward nav" though; it still wouldn't fix your back button usage situation....

Noyd

10:32 pm on Feb 18, 2005 (gmt 0)

10+ Year Member



Yea i thought there is a script for it. But its not a big deal ill stick to one frame.
Thx for your support, appreciate it.