Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 4.00 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-03-2002, 05:01 PM   PM User | #1
Power Mouse
New to the CF scene

 
Join Date: Dec 2002
Location: ma
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Power Mouse is an unknown quantity at this point
Question how to make iframe with variable height?

i stuck in this.
have web application (can't touch) and new design of web page
have to place inside table sell external .asp application .
i tried iframes, but cant make height variable.
the webapp changing height from 1 to 4-5 pages.
on the bottom of design locate table with bottom bar... (cant touch too)
does some body has simmilar problemm? and can somebody give me some solv on it..
Power Mouse is offline   Reply With Quote
Old 12-05-2002, 01:57 PM   PM User | #2
Power Mouse
New to the CF scene

 
Join Date: Dec 2002
Location: ma
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Power Mouse is an unknown quantity at this point
Thumbs up one of the ways

thanks to all. i found the way:


<SCRIPT ID=clientEventHandlersJS language=javascript>
<!--

function frm_onload(frmname)
{
frmname.frameElement.height = frmname.document.body.scrollHeight+20;
}

//-->
</SCRIPT>
</HEAD>
<BODY>

<A HREF="small.htm" TARGET=frm>small</A>
<BR>
<A HREF="big.htm" TARGET=frm>big</A>
<BR>
<IFRAME ID=frm NAME=frm WIDTH=100% LANGUAGE=javascript ONLOAD="return frm_onload(frm)">
</IFRAME>
Power Mouse is offline   Reply With Quote
Old 12-05-2002, 08:45 PM   PM User | #3
Quiet Storm
Regular Coder

 
Join Date: Jun 2002
Location: Beyond Lament
Posts: 424
Thanks: 0
Thanked 0 Times in 0 Posts
Quiet Storm is an unknown quantity at this point
I have something like that on my site - lets me know how far the "scroll size" will be...

Although from the code you posted, I can't seem to figure out what that does.


Error in IE6; access denied.
__________________
Quíet Storm Designs ~ Art is not what you see, but what you make others see.
· the Storms· || ·Ultraviolent Winter· || ·Was Einstein Wrong?· || ·It´s About Time!·
Quiet Storm is offline   Reply With Quote
Old 12-10-2002, 07:38 PM   PM User | #4
Power Mouse
New to the CF scene

 
Join Date: Dec 2002
Location: ma
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Power Mouse is an unknown quantity at this point
RE

it works fine in IE 5+

place the script:

<<SCRIPT language=javascript>
<!--
function frm_onload(frmname)
{
frmname.frameElement.height = frmname.document.body.scrollHeight+20;
}

//-->
</SCRIPT>

in header or in external .js



i have asp page loading under static page.

instead of this:

<A HREF="small.htm" TARGET=frm>small</A>
<BR>
<A HREF="big.htm" TARGET=frm>big</A>
<BR>
<IFRAME ID=frm NAME=frm WIDTH=100% LANGUAGE=javascript ONLOAD="return frm_onload(frm)">
</IFRAME>


i put this:

<IFRAME ID=frm NAME=frm WIDTH=100% LANGUAGE=javascript ONLOAD="return frm_onload(frm)" SRC="mumu.asp">
</IFRAME>



but the problem now it working only in IE. i can't find any solv. for Nav...

i'll send you my e-mail in private msg.
Power Mouse is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 08:21 PM.


Advertisement
Log in to turn off these ads.