RE: [PHP] Uppdating a frame from another frame using PHP

From: Date: Wed, 31 Jan 2001 15:51:59 +0000
Subject: RE: [PHP] Uppdating a frame from another frame using PHP
Groups: php.general 
Request: Send a blank email to php-general+get-37492@lists.php.net to get a copy of this message
What about something like this javascript: parent.basket_right.location=page You can encapsulate it in a function like this: <script language="Javascript 1.2"> function refresh_frame(page,frame_name) { parent.frame_name.location=page; } </script> Then you could call this from an onload in the appropriate body tag of the appropriate frame. So, if frame foo should be updated everytime frame bar is updated, you would make the body tag of frame bar look something like this (don't forget to add the function to your page head): <body onLoad="refresh_frame('/this/page/should/load.php','basket_right')"> That might help. I am no Javascript guru, so I can't guarantee that everything is correct, but I think this should work. Good Luck, Best, Ryan -----Original Message----- From: Rickard Walder [mailto:walder@euroitsolutions.com] Sent: Wednesday, January 31, 2001 6:34 AM To: php-general@lists.php.net Subject: [PHP] Uppdating a frame from another frame using PHP I am using PHP on site using frames. I need to uppdate a frame called basket_right everytime I run a file called cart_add.php (which contains no HTML code) from the frame called menu_and_main I tried using the header("Location: ") command, but don't know how to adress the basket_right frame. Is this the right command to use? Does anyone have suggestions? Thanks in advance. /Rickard I include my frameset if this could be of any help: I have replaced some information with *** and ... for easier wieving. <FRAMESET ROWS="60,*,53" border="0" frameborder="0" framespacing="0"> <FRAME SRC="***" name="***" ... > <FRAME SRC="shopping/shell/fs_mm.asp" name="menu_and_main" ...> <FRAMESET COLS="168,*" ...> <FRAME SRC="***" name="***" ...> <FRAMESET COLS="391,*,0" ...> <FRAMESET ROWS="21,*" ...> <FRAME SRC="***" name="***" ...> <FRAME SRC="***" name="***" ...> </FRAMESET> <FRAME SRC="shopping/shell/basket_right.php" name="basket_right" ...> <FRAME SRC="***" name="***" ...> </FRAMESET> </FRAMESET> -- 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 (#37492) next »