[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 03-26-2006, 01:45 AM   #1 (permalink)
NamePros Regular
 
Join Date: May 2005
Posts: 732
8.00 NP$ (Donate)

kslup_k is a glorious beacon of lightkslup_k is a glorious beacon of lightkslup_k is a glorious beacon of lightkslup_k is a glorious beacon of lightkslup_k is a glorious beacon of light


Rep - Insert frame full length

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
__________________
:alien: --> 21 LLL.US for sale; Take a look. <-- :alien:
kslup_k is offline  
Old 03-26-2006, 01:54 AM   #2 (permalink)
 
BillyConnite's Avatar
 
Join Date: Jul 2005
Location: Coffs H, Australia
Posts: 3,107
47.00 NP$ (Donate)

BillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant future

Wildlife Parkinson's Disease Parkinson's Disease
Quote:
Originally Posted by kslup_k
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

Best of luck,
Rhett.
__________________
<?php if(1===1){ $computer="fine."; }else{ $computer="broken."; } echo "Your computer is ".$computer; ?>
BillyConnite is offline  
Old 03-26-2006, 01:57 AM   #3 (permalink)
Senior Member
 
Join Date: Mar 2004
Posts: 1,404
2,705.50 NP$ (Donate)

primacomputer is a jewel in the roughprimacomputer is a jewel in the roughprimacomputer is a jewel in the rough


<frameset rows="100,*">
<frame src="myheader.html" >
<frame src="http://othersite.com/page.html">
</frameset>
primacomputer is offline  
Old 03-26-2006, 02:23 AM   #4 (permalink)
NamePros Regular
 
Join Date: May 2005
Posts: 732
8.00 NP$ (Donate)

kslup_k is a glorious beacon of lightkslup_k is a glorious beacon of lightkslup_k is a glorious beacon of lightkslup_k is a glorious beacon of lightkslup_k is a glorious beacon of light


I forgot,

It is not frame, its iframe.

Sorry,

Quote:
Originally Posted by BillyConnite
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
__________________
:alien: --> 21 LLL.US for sale; Take a look. <-- :alien:
kslup_k is offline  
Old 03-26-2006, 08:02 AM   #5 (permalink)
Senior Member
 
Join Date: Mar 2004
Posts: 1,404
2,705.50 NP$ (Donate)

primacomputer is a jewel in the roughprimacomputer is a jewel in the roughprimacomputer is a jewel in the rough


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.
primacomputer is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 05:52 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85