Elias,
This is what I'm looking for (I think). Just a quick question though.
Does the <frameset> tag have to be in the same php page that this line
of code is contained in? The reason I ask is because no matter where I
put this line of code (with the needed modification, my frameset is
"main") it will not work. It either does nothing or causes and error.
Let me give you a stripped down version of my code. This is how I
thought it should look but for some reason it gives an error when I add
the line to set the new window contents. This is nearly the entire code
for this page. It resides in a frame called "navigation".
<?
include ("init.inc");
?>
<html>
<head>
<title>Navigation Bar</title>
<base target="main">
</head>
<?
if (!$is_authenticated) {
?>
<applet Code="apButtonMenu" Archive="apButtonMenu.jar">
<param name="menuItems" value="
{News,news.html,main}
{Charter,charter.html,main}
{Organization,org.html,main}
{Member Login,forums/login.php3}">
</applet>
<?
}
else {
?>
<applet Code="apButtonMenu" Archive="apButtonMenu.jar">
<param name="menuItems" value="
{News,news.html,main}
{Charter,charter.html,main}
{Organization,org.html,main}
{Tips & Tricks,tips.html,main}">
</applet>
<?
window.parent.main.window.location = "news.html";
}
?>
</body>
</html>
<?
?>
In article <9hcj3j$ga3$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> If you want to change content of another frame then he's a sample code:
>
> window.parent.framerightmenu.window.location = "myfile.htm";
>
> replace 'framerightmenu'
> with real frame name which is defined in a <frameset> tag.
>
> "CertifiChecks" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hello everyone,
> >
> > Sorry for the simple question but I'm trying to learn a little more
> > about PHP and just need a little help. I'm currently running PHP3 if
> > that helps. I just need to reload the "main" frame on my site with a
> > new page once the user has logged in. All the navigation and login are
> > handled from a nav frame with PHP script that checks if the user is
> > authenticated. I know I need to put the code in my if...else loop but
> > I'm not sure what the code is.
> >
> > Thanks for any help!!
> >
> > MarcJ
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]