Unstoppable Domains

Rep - Insert frame full length

Spaceship Spaceship
Watch

kslup_k

Established Member
Impact
24
Hello

lets say i have a frame in my website, showing another website inside the frame.

and if the other website is vertically long, can we have the frame to extend to the same length of that other website, and extending the length of my own website too?

So basically i would like to get rid of the vertical scrolling bar if the other site is a long one.

Please let me know.
Thanks
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
kslup_k said:
Hello

lets say i have a frame in my website, showing another website inside the frame.

and if the other website is vertically long, can we have the frame to extend to the same length of that other website, and extending the length of my own website too?

So basically i would like to get rid of the vertical scrolling bar if the other site is a long one.

Please let me know.
Thanks
I'm sorry to say, that this is actually impossible! :(

I've tried for ages to do the same thing (as I needed it once too), but no matter where I looked, the best you can find is to create the iframe 100% of YOUR website's height using javascript, as with iframes you can't simply put a 'height=100%' in there :(

Well I hope someone can prove me wrong though :D

Best of luck,
Rhett.
 
1
•••
<frameset rows="100,*">
<frame src="myheader.html" >
<frame src="http://othersite.com/page.html">
</frameset>
 
1
•••
I forgot,

It is not frame, its iframe.

Sorry,

BillyConnite said:
as with iframes you can't simply put a 'height=100%' in there :(

Best of luck,
Rhett.

You can put height=100% with iframes, but doing so would me the iframe extend 100% according YOUR website, not the TARGET website.

What i want is to adjust according to the TARGET website.

let me know.
Thanks
 
0
•••
You would need to calculate the length of the page you're framing and adjust the hight of your iframe accordingly. This is pretty straight forward in basic situations but can get quite complicated. This really isn't what iframes are designed for, as is evident by the fact that this would be trivial of cross domain/frame scripting had no restrictions.
 
0
•••

We're social

Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back