Iframe website fit into widow ?

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Iframe website fit into widow ?
phptest
CZ Super Newbie
phptest has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Aug 22, 2004
0.01 posts per day
Posts: 58
Points: 3,076
   
Hi,

The webpage i load into the iframe is a bit wider than the iframe. I cant make the iframe any wider. So the question is if it is possible to let the iframe adjust the loaded page to let it fit into the iframe window...

Loaded pages comes from another webpage so i cant adjust that.



Back to top Reply with quote
#2   re: Iframe website fit into widow ?
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.71 posts per day
Posts: 5530
Points: 481,695
   
You're going to need to add the scrolling attribute to your iframe code...I'd set it to auto instead of yes



Back to top Reply with quote
#3   re: Iframe website fit into widow ?
phptest
CZ Super Newbie
phptest has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Aug 22, 2004
0.01 posts per day
Posts: 58
Points: 3,076
   
Will the suggetion that you make resize that page to fit in the iframe ?

Can you tell me what i need to add exactly.. to the iframe code.

Im heading towards a donation guys.. support here is excellent.



Back to top Reply with quote
#4   re: Iframe website fit into widow ?
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.71 posts per day
Posts: 5530
Points: 481,695
   
scrolling=\"auto\"


add that inside your iframe code. It will not auto fit the page but it will produce scrollbars so the page you are iframing will actually be seen when the page is scrolled. Won't look pretty but it should work for what you want it to do


Back to top Reply with quote
#5   re: Iframe website fit into widow ?
phptest
CZ Super Newbie
phptest has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Aug 22, 2004
0.01 posts per day
Posts: 58
Points: 3,076
   
That page already has scrollbars in the iframe because it doesnt fit and thats what i would like to remove.

<?php

/********************************************************************/
/*  Iframe Addon 1.6                                                */
/*                                                                  */
/*    Copyright (c) 2002 by Francisco Burzi                         */                           
/*    http://phpnuke.org                                            */
/*                                                                  */
/*    php Iframe Addon 1.6 - Copyright (c) 2002-2004 by Telli       */
/*    Updated 4-03-04                                               */
/*    http://codezwiz.com                                           */
/*    if you need any help http://codezwiz.com/forums.html          */
/********************************************************************/

if (!eregi("modules.php", $PHP_SELF)) {
   die ("You can't access this file directly...");
    }
   
///////////////////////////////////////////////
$index = 0; // 0 right side off
$height = 1435;
$iframescreen = 'www.mywebsiteurl.com/page.php'; // Must be [ Register or login to view links on this board. ]
///////////////////////////////////////////////

include("header.php");
$iframe_block = "
<iframe border=\"0\" src=\"http://$iframescreen\" width=\"740\" height=\"$height\">
</iframe>";
if ($opi != "ds") {
      opentable();
   echo "$iframe_block";
      closetable();
   }
    include("footer.php");
?>


(ive send you the url in a pm)
Still would be great if there was a way to make the web page resize to fit in the iframe.

Is it also possible to remove the scrollbars ? what do i need to add/remove in that code.

Thank you Code Wizzards icon_eek.gif icon_wink.gif


Back to top Reply with quote
#6   re: Iframe website fit into widow ?
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.71 posts per day
Posts: 5530
Points: 481,695
   
Think of it this way...here's an example for you:

Your site is only 700 width...if you're trying to bring in a page that is much larger like let's say 750 or 800...the scrollbars will alway sbe there to adjust to the page. That is just how it works. It's compensating for the difference of the page sizes



Back to top Reply with quote
#7   re: Iframe website fit into widow ?
reaper44
CZ Newbie
reaper44 has been a member for over 19 year's 19 Year Member
Website:
Status: Offline
Joined: Oct 30, 2004
0.00 posts per day
Posts: 2
Points: 384
   
I think you will find the iframe will always have scroll bars unless the site is small(so it does not take up your hole page)eg the dating service iframe on my site.
now for the technical bit.Now believe it or not there is a company out there that has designed somthing called auto resolution (Netview Web Browser)Which changes the screen to the resolution of the site,Automatically. We are rebuilding [ Register or login to view links on this board. ] and are looking at open sourcing the technology. Who knows one day in the future we may not need scroll bars:)



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum