How to load new content in frame_2 when changing frame_1

liunx

Guest
Hi there.<br />
I have a frameset with 4 frames: left, up, main, bot.<br />
The up_frame contains a java menu. Now I would like to send new content (html) to the bot_frame when the content of the main_frame changes by using a link or the menu.<br />
<br />
Or different explained: I would like to have the same effekt like if I click on a link and use target="bot_frame", but without clicking, when main_frame is loaded.<br />
<br />
Thanks in advance,<br />
Tom<!--content-->in your main_frame html page you can just do:<br />
<br />
<head><br />
<script language="javascript"><br />
function loadBottomFrame(){<br />
parent.bot_frame.document.location.href=http://www.webdeveloper.com/forum/archive/index.php/"somePage.html";<br />
}<br />
</script><br />
</head><br />
<br />
<body onload="loadBottomFrame();"><br />
</body><br />
<br />
or in your menu system, you can do the same, but call the function from the onClick events of the menu items.<br />
<br />
hope that helps<br />
jason<!--content-->Hi Jason,<br />
<br />
thank you many times - that was exactly what I was looking for !!<br />
<br />
Regards,<br />
Tom<!--content-->glad i could help!<!--content-->
 
Back
Top