Click to See Complete Forum and Search --> : Frames, scroll bars and Back Buttons


Nulrick
01-28-2003, 02:21 PM
Hi all!

I'm looking for a script that will allow me to apply a scrollbar to a portion of my HTML page... essentially like a frameset works in that you can prevent some frames from scrolling <SCROLL=NO> while only allowing one frame to scroll.

I am going this route because when building the frameset, I realized that when the browser's "Back" button is hit, only one frame goes back, as opposed to all.

Does anyone know a script that would force the browser back button to reload ALL previous frames with one hit?

If that isn't possible then I'm looking for a script that can be set to scroll only a portion of an HTML page.


Help anybody?

Thanks!


Nicole Ulrick

swon
01-28-2003, 02:42 PM
you can do something like that with a button:

<script language=javascript>
function ReLoads(){
var fram1 = parent.tops; // a frame named tops;
var fram2 = parent.bottom; // a frame named bottom;
fram1.location.reload(); // frame named tops reloads
fram2.location.reload(); // frame named bottom reloads
location.reload(); // frame with button reloads
}
</script>

<button onClick=ReLoads()>reload frames</button>

Stefan
01-29-2003, 11:59 AM
Originally posted by Nulrick
I'm looking for a script that will allow me to apply a scrollbar to a portion of my HTML page... essentially like a frameset works in that you can prevent some frames from scrolling <SCROLL=NO> while only allowing one frame to scroll.



<div style="width:100px; height:100px; overflow:auto;">
If you add a lot of content in here it will give a scrollbar to show the stuff that doesn't fit otherwise. No Javascript required...
</div>