Frame Issue[solved]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
thomas777neo
Forum Contributor
Posts: 214
Joined: Mon Mar 10, 2003 6:12 am
Location: Johannesburg,South Africa

Frame Issue[solved]

Post by thomas777neo »

I have 5 frames.

topFrame,leftFrame,rightFrame,bottomFrame,mainFrame

In the leftFrame I have a menu, whereby I send some values through a url to the mainFrame with a $whattodo variable that contains the value of the page I want to load, namely portal.php.

In the portal.php I have this piece of code:

Code: Select all

<script language=&quote;JavaScript&quote; type=&quote;text/JavaScript&quote;>
    function initializeFilter()
   {
        parent.frames&#1111;'rightFrame'].location = &quote;right.php&quote;;
        parent.frames&#1111;'rightFrame'].filterLoad.submit();
   }
</script>
		
<form name=&quote;filterLoad&quote; id=&quote;filterLoad&quote; method=&quote;post&quote; action=&quote;&quote;>
    <input name=&quote;menu_items_id&quote; type=&quote;hidden&quote; id=&quote;menu_items_id&quote; value=&quote;<?php echo $menu_items_id; ?>&quote;>
</form>
		
<body onLoad=&quote;initializeFilter()&quote;>
So, as the portal page loads, I want to send the variable menu_items_id to the right frame. But it doesn't work. I am not a javascript guru, so could someone please tell me what I am doing wrong.
Post Reply