Mark Forums Read
  #1  
Old 08-26-2006, 10:56 AM
montyauto montyauto is offline
Junior Member
 
Join Date: Apr 2006
Posts: 6
montyauto is on a distinguished road
Question Any body got solution about resizing iframe?

Any body has solution to resizing iframe based on the size of its external content (different domain)?

I know there is a denied accessing to the external content. So far I found some way using cookies but need to fill some code inside the loaded content where as I am talking about loading any external links into the frame.

First you have to get the size of other website. I am not sure how you would do that.

Just hope any one has a got the solution.
__________________
Monty Auto

Fast.ProBuilderPLUS.com
One of The Fastest Growing Online Business Available Today.
Reply With Quote
 #Add to Ads's Reputation  
OldSponsored Ads
Ads AdsPromoter is online
Member
 
Join Date: LongTime
Posts: 1100
Ads is on a distinguished road
Default New Sponsored Ads



This message will go away once you are registered. Also, by registering, you will have access to all post topics, communicate privately with other members (PM), respond to polls, upload graphics, and access other special features! Registration is fast, simple and absolutely free so please Click Here to join our Web Hosting community today!
Reply With Quote
  #2  
Old 01-10-2009, 06:55 AM
ajit22 ajit22 is offline
Member
 
Join Date: Jan 2009
Posts: 54
ajit22 is on a distinguished road
Default

You should be able to find lots of examples of this; here:

http://www.google.com/search?hl=en&...G=Google+Search
__________________
New York Web design
Website design

Reply With Quote
  #3  
Old 06-25-2009, 09:35 AM
gkumar gkumar is offline
Senior Member
 
Join Date: Jun 2009
Posts: 203
gkumar is on a distinguished road
Default Any body got solution about resizing iframe?

Hi,

I have this javascript code that resizes an Iframe according to its contents height. It works, but the Iframe does not downsize for smaller pages.

It will only keep resizing if the pages get bigger. So, after viewing a page thats really long, then viewing a page that is really small, its displayed with a lot of empty space.

I was hoping some one could please help modify the code. I need it to "shrink" too!

I have this in the <head> of the page that is being loaded/viewed in the Iframe.
Quote:
<script language="javascript" type="text/javascript">
<!--
function resizeIframe() {
if(self==parent) return false; /* Checks that page is in iframe. */
else if(document.getElementById&&document.all) /* Sniffs for IE5+.*/

var FramePageHeight = framePage.scrollHeight; /* framePage
is the ID of the framed page's BODY tag.

parent.document.getElementById('content_frame_id_n ame').style.height=FramePageHeight;
/* "content_frame_id_name" is the ID of the inline frame in the parent page. */
}
//-->
</script>
This is in the body tag of the same page
Quote:
<body id='framePage' onload='resizeIframe()'>
I also would like this to work in most common browsers. So, if you have any comments on this, please let me know.

Thank you
Reply With Quote
 #Add to Ads's Reputation  
OldSponsored Ads
Ads AdsPromoter is online
Member
 
Join Date: LongTime
Posts: 1100
Ads is on a distinguished road
Default New Sponsored Ads



This message will go away once you are registered. Also, by registering, you will have access to all post topics, communicate privately with other members (PM), respond to polls, upload graphics, and access other special features! Registration is fast, simple and absolutely free so please Click Here to join our Web Hosting community today!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 05:39 PM.


Powered by vBulletin Version 3.6.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 2.4.0