Forum Moderators: open

Message Too Old, No Replies

loading iframe "freezing" divs

         

theriddla1019

4:10 pm on Sep 7, 2004 (gmt 0)

10+ Year Member



I have a page with multiple hidden divs and clicking a link shows the chosen div and hides all the other divs. On one of the divs is an iframe, there are multiple iframes which work correctly on the other divs but this specific one "hangs" or "freezes" the other divs untill i unhide the div and the iframe is shown. once i show that div everything will work, drop down boxes, buttons, text boxes, etc. But before that you cant click and change anything, you can however change it from the keyboard. Now i removed the one line of code that loads the iframe and everything works fine. and i know the line of code is correct because its exactly the same as every other iframe i load. So its like a situational thing im guessing. Imma post a little bit of the code in hopes i can get some help with this.

<html>
<head>
<script language="Javascript">
function AlterAction(value, id){document.all.hhrgcalc.src="hhrg_calc.php?epid=" + id + "&oasis=" + value;}
</script>
</head>
<body bgcolor="#addfff">
<table width="70%" align="center">
<tr>
<td align="center" width="50%">
<b>Select OASIS to Calculate HHRG:</b>
</td>
<td align="center" width="50%">
<select name="hhrgselect" ONCHANGE="AlterAction(value, <?=$epid?>);">

<?
//php loading stuff........//
?>
<option value="<?=$Row['oasisid']?>"><?=$Row['mo090']?> - <?=$oasistype?></option>
<?
}
?>
</select>
</td>
</tr>
</table>
<table>
/////this is the frame killin the code/////
<IFRAME NAME="hhrgcalc" SRC="lightblueblank.php" WIDTH="736" HEIGHT="350" align="center" FRAMEBORDER="0" SCROLLING="NO" NORESIZE></IFRAME>
</table>
</body>
</html>

[edited by: tedster at 4:16 pm (utc) on Sep. 7, 2004]
[edit reason] turn off smile graphics [/edit]

theriddla1019

4:49 pm on Sep 7, 2004 (gmt 0)

10+ Year Member



Oddly enough i removed the table tags surrounding the iframe, cause i noticed it wasnt placed(or finished) correctly as it was and it magically works.

tedster

4:53 pm on Sep 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If the "reduced" mark-up above is an indicator, it looks like you were missing <tr> and <td> for your iframe section - and that caused the problem. Was that it?

theriddla1019

5:03 pm on Sep 7, 2004 (gmt 0)

10+ Year Member



Yeah i threw in the correct table formatting and it works..i guess the symptoms were just so messed up that i wasnt thinking something like that would have been the problem.