Howdy, I have a frameset, menu.php left and main.php right.
Here is the frameset code
[php]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head><title></title>
</head>
<frameset cols="200,*">
<frame src="menu.php" />
<frame src="main.php" name="main" />
</frameset>
</html>
[/php]
Then the menu.php frame code
[php]
<html><head><title></title>
<script language="javascript">
<!--
function openWhat(){
parent.main.location.href = "main.php?foo=bar";
}
//-->
</script>
</head>
<body>
<?php
echo '<a href="javascript:openWhat()">links</a><br />';
?>
</body>
</html>
[/php]
and finally the code of the main.php frame
[php]
<html>
<head>
</head>
<body>
<? echo $_GET['foo']; ?>
</body>
</html>
[/php]
It works, but it locks up the browser (as in the blue bar under in IE takes forever to load)
Anyone see what I'm doing wrong?