Results 1 to 3 of 3
Thread: Iframe problem in safari
Hybrid View
-
10-19-2009, 01:31 PM #1Web Hosting Master
- Join Date
- Aug 2008
- Posts
- 1,679
Iframe problem in safari
Hello all,
I am having a very annoying problem, I have added an Iframe in my webpages:
<iframe width="98%" id="the_iframe"
onLoad="calcHeight();"
src="https://www.mysitename.com/support/index_login.php"
scrolling="NO"
frameborder="0"
height="1">
</iframe>
the great thing with this code is that when my Iframe height changes,my webpage layout streches as well, this is great in Opeara/firefox/IE but does not work at all in Safari,any idea why and how to change/reverse this problem please?
Many Thanks,
BamBam
-
10-20-2009, 10:25 AM #2Newbie
- Join Date
- Jun 2002
- Posts
- 26
You're going to need to post the code of your calcHeight() method in order for anyone to help you.
-
10-20-2009, 10:50 AM #3Web Hosting Master
- Join Date
- Aug 2008
- Posts
- 1,679
Hi Random,
you are right, I forgot this code :-)
<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>
thanks!
Similar Threads
-
Javascript iframe problem
By BurakUeda in forum Programming DiscussionReplies: 1Last Post: 10-15-2007, 05:32 AM -
iframe injection problem and rkhunter warnings
By xserverx in forum Hosting Security and TechnologyReplies: 5Last Post: 08-27-2007, 05:20 PM -
severe <iframe> injection problem please help
By jxnms in forum Hosting Security and TechnologyReplies: 12Last Post: 12-01-2006, 07:27 PM -
Table's border visible inside iframe with visibility: hidden (set for iframe)
By zoldar in forum Web Design and ContentReplies: 4Last Post: 03-17-2006, 12:58 AM -
IFRAME/HTML Problem of the century - ahhh!!
By bearcatmonkey2001 in forum Web Design and ContentReplies: 30Last Post: 07-05-2004, 02:18 PM