hi there again
javascript is client side and allows you to do things on the basis of user interaction. php is server side so once you've put together a page then you don't really have the opportunity to implement logic.
so you can do all sorts of good stuff with the user with javascript but how can you change the session variables when they are back on the server??
(you can only get to the session information when you ask for something new from the server because this info is waiting there for you to request something new and supply a valid session id.) So you can't change session information without loading a new page
but you can use javascript to load the menu.php page. use an onClick = "refreshmenu()" , or whatever user event you
want, to trigger the update. (you can also use various means to store variables for more complex user interaction)
<script>
function refreshmenu {
//in here you can do stuff like use a variable (eg. hidden form variable) to hold the info you want to send then set a url with variable to update ...
var infotype = document.my_formname.my_hiddenfield.value
//something like this ... i don't use frames much
var myURL = "menu.php?info=" + infotype
top.frames[1].location.href=myURL
}
</script>
note: the status bar might be a good place for the types of things you are displaying.