problem with frameset and links

liunx

Guest
hello everybody, i'm new here and i hope that u can help me.<br />
my problem:<br />
i made a regular frameset containing 3 section: top menu, navigation bar on the left and the main page on the right.<br />
<br />
<br />
i have buttons in the top menu and by clicking them, i want to change the main page (right frame) and the navigation bar (left frame).<br />
the link look like this :<br />
<br />
href=http://www.htmlforums.com/archive/index.php/"javascript:window.parent.mainRight.location='articles/artilce1.htm';window.parent.mainLeft.location="section1_left.htm'"><br />
<br />
the problem is that the left frame and the right frames are changing but the content of the top frame dissapear and instead of its content there is this text:<br />
section1_left.htm<br />
<br />
please help !<br />
thanks<!--content-->You are close. Try<br />
<br />
href=http://www.htmlforums.com/archive/index.php/"javascript:parent.mainRight.location='articles/artilce1.htm';parent.mainLeft.location='section1_left.htm'"><br />
<br />
I hope this helps, good luck.<!--content-->nope, the same result. the top frame changes its content (erases itself and instead i got the name of the second link in the top frame) <br />
another suggestion?<!--content-->Yep, the problem is not with your link, but I suspect your frame source. Please post your URL or your frame source and your page sources. I've used the same code to change up to 5 frames at once without a problem. Also what browser and OS are you using?<br />
<br />
After note: Please make sure your browser is not calling the page from cache when checking it, if it is, you will get the same result every time. If you are using IE, right click on the frame page, click Refresh while holding the Ctrl key.<!--content-->os- windows ME<br />
browser - explorer 5.5<br />
<br />
the frame source -<br />
the frameset file is in the root directory, the top frame source is in the same directory and also the left bar frame source, only the main page,the right frame, source is in the subdirectory - articles.<br />
<br />
<br />
<br />
after note: i refreshed the page this is not the problem<!--content-->Ok, you could add a third link in your code but I'm sure there is an easier way (I just have to hunt through my folders to find it). Try adding <br />
href=http://www.htmlforums.com/archive/index.php/"javascript:parent.mainRight.location='articles/love_ben_027_fb.htm';parent.mainLeft.location='frame_yajasim_left.htm';parent.mainTop.location='main _page_top_new.htm'"> in the meantime.<br />
Sorry about that.<!--content-->well i guess that will do but i'm sure there is more elegant way to do it. if you have more ideas i'll be happy to hear from you. <br />
thank you for the help.<!--content-->
 
Back
Top