Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Javascript issue

Javascript issue
Thread Tools
skalie
Mac Elite
Join Date: Mar 2002
Location: Clogland
Status: Offline
Reply With Quote
Jul 1, 2005, 05:31 AM
 
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?
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 11:53 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,