PDA

View Full Version : 2 frames scrolling as one..



apetrie
February 2nd, 2005, 07:13 PM
Hey, I've been trying to figure this out for a while now and I'm a little stumped.

Is there a way to lock a top frame to the bottom so that they act as if they are one page and scroll as one?

Before you say to just not use frames, I have to. Its vital that the top frame never refresh.

I thought about using a hidden frame, but in order to force it to scroll I'll have to set scrollbars to be on and then I have a scrollbar at the bottom which is ugly and wrong and useless.

Any suggestions? Thanks much.

- Adrienne

amitgeorge
February 3rd, 2005, 02:26 AM
cant understand your requirement

Kristopher
February 3rd, 2005, 10:09 AM
I see what you are looking for (good to see you again adrienne). I thought about this and couldn't place any code that I've come across in the past to make me think this could be done. So I did a search via google and some coding sites, and I couldn't find anything. I think it's not possible, because the premisis for this defeats the purpose of frames originally.

I'm assuming you have a Flash header and an HTML bottom, and you don't want the user to reload the Flash header every time?

Gazler
February 3rd, 2005, 02:55 PM
Couldn't you use an iframe?

apetrie
February 4th, 2005, 10:02 AM
I see what you are looking for (good to see you again adrienne). I thought about this and couldn't place any code that I've come across in the past to make me think this could be done. So I did a search via google and some coding sites, and I couldn't find anything. I think it's not possible, because the premisis for this defeats the purpose of frames originally.

I'm assuming you have a Flash header and an HTML bottom, and you don't want the user to reload the Flash header every time?

Thanks Kris, I really appreciate the effort and its good to be around again!! Life went nuts on me lately :)

The header is actually html but contains a flash media player that is quite complex and would obviously, because its flash, be reset by the page reloading. I personally think its a good idea if the whole page does NOT scroll but the client finds only part of the page scrolling to be "jarring". :huh:

The only solution I have discovered so far is to but both frames into a container frame that has the scrollbars set to be on, but on a PC that will show a horizontal scrollbar along the bottom always as well, and to me that just looks wrong when it has no real purpose.

Again, thanks much for trying. :)

Gazler: I'm not sure how an iframe would help in this situation as it would still mean that part of the page would scroll without the rest? Or are you suggesting I put the whole page into an iframe, and if so can their height be set dynamically so that it would appear like a normal browser page? Can you elaborate please? Thanks!

Kristopher
February 4th, 2005, 01:19 PM
Even with an IFrame, the Flash header would be reloaded everytime.

Gazler
February 4th, 2005, 06:43 PM
What if the actual content of the page was put into the iframe and then the iframe re-loaded, the iframe width would have to be variable to allow the page change so it looks like there are no frames, but I think it would work.