navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

problem resizing iframe...

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> problem resizing iframe...
Page: [1]
 
oswald8

 

Posts: 2
Joined: 6/9/2008
Status: offline

 
problem resizing iframe... - 6/9/2008 23:04:17   
Hi! I found this code online that could make my iframe vary height depending on its content. It works awsomely in IE, but in mozilla firefox, it's a diffrent story! The frame expands well with the content, but it never shrinks back. Can anyone help me?

here's my page: luckyoswald.net

For the code, I pasted this in the head of my main page (the one that contains the iframe)
------------------------

<script language="JavaScript">
<!--
function calcHeight()
{
//find the height of the internal page
var the_height=
document.getElementById('the_iframe').contentWindow.
document.body.scrollHeight;

//change the height of the iframe
document.getElementById('the_iframe').height=
the_height;
}
//-->
</script>

------------------------



and this is my iframe tag
------------------------

<iframe width="741" id="the_iframe"
onLoad="calcHeight();"
onload=resize_iframe
src="blog.htm"
scrolling="no"
frameborder="0"
height="1" marginwidth="1" marginheight="1" name="I1" border="0">
</iframe>

------------------------



thanks in advance!
oswald8

 

Posts: 2
Joined: 6/9/2008
Status: offline

 
RE: problem resizing iframe... - 6/10/2008 12:59:06   
Wow, I had this HUGE downtime yesterday so no one could view my site.. It's working this morning, it's just incredibly slow...

http://luckyoswald.net

(in reply to oswald8)
jaybee

 

Posts: 14191
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: problem resizing iframe... - 6/10/2008 16:40:00   
I don't get why you're using frames for the page. Am I missing something?

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to oswald8)
Page:   [1]

All Forums >> Web Development >> General Web Development >> problem resizing iframe...
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts