sdo
09-21-2008, 06:02 AM
Hey All,
This one is killing me.
Check out the issue here (http://www.scoopsquad.ca/index1.html). Use the flash navigation at the top to navigate to "Sign Up".
All is well, and the iframe loads the signup content and dynamically resizes the iframe.
Now, reload the page, and notice first that the iframe resizes itself erroneously. THEN, navigate back to the home page, and, finally, use the ad UNDER the navigation header to "sign up now". This links to the sign up page, JUST like the nav menu, and yet, the iframe is NOT sized. what.. the.. FUDGSICLE!?
Here is the code for the surrounding page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link href="style.css" rel="stylesheet" type="text/css">
<link href="layout.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
function calcHeight() {
//find the height of the internal page
var the_height= document.getElementById('mainFrame').contentWindow.document.body.scrollHeight;
//change the height of the iframe
document.getElementById('mainFrame').height= the_height; }
</script>
<title>Scoop Squad Pet Waste Removal</title>
</head>
<body id="page1">
<a name="top" id="top"></a>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" align="center">
<tr>
<td width="10" class="left"></td>
<td width="9" bgcolor="#E3CFAA">
<div class="site_center">
<div id="header">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=
"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24"
width="900" height="407">
<param name="movie" value="flash/header2_v8_squad style linked.swf?button=1">
<param name="quality" value="high">
<param name="menu" value="false">
<!--[if !IE]> <-->
<object data="flash/header2_v8_squad%20style%20linked.swf?button=1" width="900"
height="407" type="application/x-shockwave-flash">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="pluginurl" value=
"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">
FAIL (the browser should render some flash content, not this).
</object> <!--> <![endif]-->
</object>
</div>
<table width="100%" bgcolor="#E3CFAA">
<tr bgcolor="#E3CFAA">
<td width="100%" height="100%" valign="middle" align="center" bgcolor="#E3CFAA">
<iframe id="mainFrame" name="mainFrame" onLoad="calcHeight();" src="homepagecontent.html" width="878"
frameborder="0" scrolling="no" marginwidth="0" marginheight="0"></iframe></td>
</tr>
</table>
</div>
</td>
<td width="10" class="right"></td>
</tr>
<tr>
<td width="10" height="10" class="bottomleft"></td>
<td height="10" class="bottom"></td>
<td width="10" height="10" class="bottomright"></td>
</tr>
<tr>
<td></td>
<td>
<center>
<br>
<br>
<p class="foot"><a href="http://www.scoopsquad.ca/">Home Page</a> | <a href=
"http://www.scoopsquad.ca/services.html">Services</a> | <a href=
"http://www.scoopsquad.ca/signup.html">Sign up</a> | <a href=
"http://www.scoopsquad.ca/faq.html">F.A.Q.</a> | <a href=
"http://www.scoopsquad.ca/news.html">News</a> | <a href=
"http://www.scoopsquad.ca/employment.html">Employment</a> | <a href=
"http://www.scoopsquad.ca/about.html">About Us</a> | <a href=
"http://www.scoopsquad.ca/signup.html">Contacts</a><br>
<strong>© 2008</strong> <a href="http://www.scoopsquad.ca/">Scoop Squad</a> Pet
Waste Removal<br>
All rights reserved.<br>
<br></p>
<p><a href="http://validator.w3.org/check?uri=referer"><img src=
"http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional" height="31"
width="88"></a> <a href="http://jigsaw.w3.org/css-validator/"><img style=
"border:0;width:88px;height:31px" src=
"http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!"></a>
</p><br>
<a href="#top">Top</a><br>
<br>
</center>
</td>
<td></td>
</tr>
</table>
</div>
</body>
</html>
ANY input is greatly appreciated.
-SDO
This one is killing me.
Check out the issue here (http://www.scoopsquad.ca/index1.html). Use the flash navigation at the top to navigate to "Sign Up".
All is well, and the iframe loads the signup content and dynamically resizes the iframe.
Now, reload the page, and notice first that the iframe resizes itself erroneously. THEN, navigate back to the home page, and, finally, use the ad UNDER the navigation header to "sign up now". This links to the sign up page, JUST like the nav menu, and yet, the iframe is NOT sized. what.. the.. FUDGSICLE!?
Here is the code for the surrounding page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link href="style.css" rel="stylesheet" type="text/css">
<link href="layout.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
function calcHeight() {
//find the height of the internal page
var the_height= document.getElementById('mainFrame').contentWindow.document.body.scrollHeight;
//change the height of the iframe
document.getElementById('mainFrame').height= the_height; }
</script>
<title>Scoop Squad Pet Waste Removal</title>
</head>
<body id="page1">
<a name="top" id="top"></a>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" align="center">
<tr>
<td width="10" class="left"></td>
<td width="9" bgcolor="#E3CFAA">
<div class="site_center">
<div id="header">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=
"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24"
width="900" height="407">
<param name="movie" value="flash/header2_v8_squad style linked.swf?button=1">
<param name="quality" value="high">
<param name="menu" value="false">
<!--[if !IE]> <-->
<object data="flash/header2_v8_squad%20style%20linked.swf?button=1" width="900"
height="407" type="application/x-shockwave-flash">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="pluginurl" value=
"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">
FAIL (the browser should render some flash content, not this).
</object> <!--> <![endif]-->
</object>
</div>
<table width="100%" bgcolor="#E3CFAA">
<tr bgcolor="#E3CFAA">
<td width="100%" height="100%" valign="middle" align="center" bgcolor="#E3CFAA">
<iframe id="mainFrame" name="mainFrame" onLoad="calcHeight();" src="homepagecontent.html" width="878"
frameborder="0" scrolling="no" marginwidth="0" marginheight="0"></iframe></td>
</tr>
</table>
</div>
</td>
<td width="10" class="right"></td>
</tr>
<tr>
<td width="10" height="10" class="bottomleft"></td>
<td height="10" class="bottom"></td>
<td width="10" height="10" class="bottomright"></td>
</tr>
<tr>
<td></td>
<td>
<center>
<br>
<br>
<p class="foot"><a href="http://www.scoopsquad.ca/">Home Page</a> | <a href=
"http://www.scoopsquad.ca/services.html">Services</a> | <a href=
"http://www.scoopsquad.ca/signup.html">Sign up</a> | <a href=
"http://www.scoopsquad.ca/faq.html">F.A.Q.</a> | <a href=
"http://www.scoopsquad.ca/news.html">News</a> | <a href=
"http://www.scoopsquad.ca/employment.html">Employment</a> | <a href=
"http://www.scoopsquad.ca/about.html">About Us</a> | <a href=
"http://www.scoopsquad.ca/signup.html">Contacts</a><br>
<strong>© 2008</strong> <a href="http://www.scoopsquad.ca/">Scoop Squad</a> Pet
Waste Removal<br>
All rights reserved.<br>
<br></p>
<p><a href="http://validator.w3.org/check?uri=referer"><img src=
"http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional" height="31"
width="88"></a> <a href="http://jigsaw.w3.org/css-validator/"><img style=
"border:0;width:88px;height:31px" src=
"http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!"></a>
</p><br>
<a href="#top">Top</a><br>
<br>
</center>
</td>
<td></td>
</tr>
</table>
</div>
</body>
</html>
ANY input is greatly appreciated.
-SDO