Re: HOW TO: Reload a frame with a different URL?

From: Date: Wed, 27 Jun 2001 13:39:19 +0000
Subject: Re: HOW TO: Reload a frame with a different URL?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-55387@lists.php.net to get a copy of this message
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$1@w153.z064000151.sjc-ca.dsl.cnc.net>, elias_bachaalany@yahoo.com 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" <marcj@certifichecks.com> wrote in message > news:MPG.15a26998e0cc9308989680@news.php.net... > > 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: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > >

« previous php.general (#55387) next »