Re: [PHP] update two frames at once?
Jeanne, Your script example looks very promising. I have spent two solid days trying to solve this problem. I think what you have provided will be a big help. I am having trouble getting the navigation frame to update, though. I'm not sure what I'm missing. Do you have a working example? Best, Kathie -- Kathleen A. Ferraro Senior Curriculum Specialist Office of Medical Education Scaife M211 University of Pittsburgh Pittsburgh, PA 15261 USA -- 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]
RE: [PHP] update two frames at once?
I don't know if this is possible in PHP don't think so but you can do some very nifty things using JavaScript. Let's say you got two frames named links and main. Then you can for example do something like this in a page called contacts.php in the main frame body class="main" onLoad="Javascript:top.frames[0].location='links.php?page=contacts'" Then in your links.php page you could have this php code. if(isset($page)) { include("./links/$page.inc"); } As you can see, the value of $page can be whatever you want. So when you then browse to another page, lets say companies.php then you could include the special functions for that page in the links page. This can be very usable for webbased applications when you wan't to keep the functions on the right for each page, but want to change them whenever you change pages. There is a con to this all though. When you use this method and hit the back button you will only be taken one step back, so the links page will only be taken back but not the main screen. Best way to fix this is to set up a pretty obvious back button that is in the path of the user going to the left corner to the screen. The link on that one would then be: a href="Javascript:history.back(-2)" instead of the usual -1. Hope this helps, Maron Kristofersson Reykjavik Iceland http://www.discovericeland.is/ -Original Message- From: Michael George [mailto:[EMAIL PROTECTED]] Sent: 12. mars 2001 21:06 To: [EMAIL PROTECTED] Subject: [PHP] update two frames at once? Hello al! Is it possible to have two frames updated when cliking on one link? I have a page that is broken into 4 parts: master title section title d section screen i r . what I want is that when a link is clicked on in the directory (the left column), I'd like to update the section title *and* the section screen... It seemed a cool layout at the time, but I'm thinking this isn't easily possible and I might just have to incorporate a section title on the section screen... But before I rewrite it, I thought I'd ask here. Thanks! -Michael P.S. I'd like to commend the regular posters to this list on being SOOO informative and patient! Every small question to this list always gets several useful answers, even when I've seen questions asked over and again. -- No, my friend, the way to have good and safe government, is not to trust it all to one, but to divide it among the many, distributing to every one exactly the functions he is competent to. It is by dividing and subdividing these republics from the national one down through all its subordinations, until it ends in the administration of every man's farm by himself; by placing under every one what his own eye may superintend, that all will be done for the best. -- Thomas Jefferson, to Joseph Cabell, 1816 -- 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]
Re: [PHP] update two frames at once?
Yes you can and there is even a neater script that does it. with thise you can update any amount of frames a t the same time. Just well i got to find it. msg back in a few. Jens Nedal on 12.03.2001 22:15 Uhr, Angerer, Chad at [EMAIL PROTECTED] wrote: Yes you can.. use Javascript Look here.. http://www.virtualgeoff.com/junkyard/frames/multiple/ Chad -Original Message- From: Michael George [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 3:06 PM To: [EMAIL PROTECTED] Subject: [PHP] update two frames at once? Hello al! Is it possible to have two frames updated when cliking on one link? I have a page that is broken into 4 parts: master title section title d section screen i r . what I want is that when a link is clicked on in the directory (the left column), I'd like to update the section title *and* the section screen... It seemed a cool layout at the time, but I'm thinking this isn't easily possible and I might just have to incorporate a section title on the section screen... But before I rewrite it, I thought I'd ask here. Thanks! -Michael P.S. I'd like to commend the regular posters to this list on being SOOO informative and patient! Every small question to this list always gets several useful answers, even when I've seen questions asked over and again. -- 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]
Re: [PHP] update two frames at once?-Revised
Whoops I forgot to include the whole buildquerystring function in my last post Sorry about that function build_querystring() { global $HTTP_GET_VARS; $vars=array(); $varlist=array("cID","dID","editreturn","return","action","editpers"); while (list($key,$value)=each($HTTP_GET_VARS)){ reset($varlist); if (in_array($key,$varlist)){ $key=trim($key); $value=trim($value); $vars[]="$key=$value"; } } while (list($junk,$val)=each($vars)) { } $queryvars=implode($vars,""); return $queryvars; } - Original Message - From: "Jeanne Pelletier" [EMAIL PROTECTED] To: "Jens Nedal" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, March 14, 2001 12:58 PM Subject: Re: [PHP] update two frames at once? Here's what works for me-- You might adapt this to work on your frames. on the frameset page--index.php ---I put the following: ?php function build_querystring() { global $HTTP_GET_VARS; $vars=array(); //I use a list of the variables I want to be parsed here so as to avoid some mischief $varlist=array("var1","var2","var3"); while (list($key,$value)=each($HTTP_GET_VARS)){ reset($varlist); if (in_array($key,$varlist)){ $key=trim($key); $value=trim($value); $vars[]="$key=$value"; } } $dir="directoryname"; $thesevars=build_querystring(); $page=(isset($page) $page !="")?"$page":"defaultpage"; $gopage=(!$thesevars=="")?"$page.php?":"$page.php"; $framepage="$dir$gopage$thesevars"; ? Then in the frameset I make the url of mainFrame the value of $framepage frameset rows="100,561*" frameborder="NO" border="0" framespacing="0" cols="*" frame name="topNav" scrolling="NO" noresize src="topnav.php" frame name="mainFrame" src="?php echo($framepage);?" /frameset Then your links are coded like so: a href="/index.php?page=whatevervar1=foovar2=bar" Maybe not the most elegant solution, but it works for me. Jeanne - Original Message - From: "Jens Nedal" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 14, 2001 5:05 AM Subject: Re: [PHP] update two frames at once? Yes you can and there is even a neater script that does it. with thise you can update any amount of frames a t the same time. Just well i got to find it. msg back in a few. Jens Nedal on 12.03.2001 22:15 Uhr, Angerer, Chad at [EMAIL PROTECTED] wrote: Yes you can.. use Javascript Look here.. http://www.virtualgeoff.com/junkyard/frames/multiple/ Chad -Original Message- From: Michael George [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 3:06 PM To: [EMAIL PROTECTED] Subject: [PHP] update two frames at once? Hello al! Is it possible to have two frames updated when cliking on one link? I have a page that is broken into 4 parts: master title section title d section screen i r . what I want is that when a link is clicked on in the directory (the left column), I'd like to update the section title *and* the section screen... It seemed a cool layout at the time, but I'm thinking this isn't easily possible and I might just have to incorporate a section title on the section screen... But before I rewrite it, I thought I'd ask here. Thanks! -Michael P.S. I'd like to commend the regular posters to this list on being SOOO informative and patient! Every small question to this list always gets several useful answers, even when I've seen questions asked over and again. -- 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]
Re: [PHP] update two frames at once?
This may work, but it defeats the purpose of frames, which is to reduce reloading time. You would need to point to the frameset page, and have variables passed into each frame: html head title(your title)/title /head frameset rows="45%,55%" frameborder="NO" border="0" framespacing="0" cols="*" ?echo ' frame name="topFrame" scrolling="NO" name="top" src="master_title.php?put_your parameters_here='.$blablabla.' " !-- repeat as many times as you have frames -- ? /frameset /body /html Hello al! Is it possible to have two frames updated when cliking on one link? I have a page that is broken into 4 parts: master title section title d section screen i r . what I want is that when a link is clicked on in the directory (the left column), I'd like to update the section title *and* the section screen... It seemed a cool layout at the time, but I'm thinking this isn't easily possible and I might just have to incorporate a section title on the section screen... But before I rewrite it, I thought I'd ask here. -- 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]
Re: [PHP] update two frames at once?
I dont believe so. -Tanya On Mon, 12 Mar 2001, Michael George wrote: Hello al! Is it possible to have two frames updated when cliking on one link? I have a page that is broken into 4 parts: master title section title d section screen i r . what I want is that when a link is clicked on in the directory (the left column), I'd like to update the section title *and* the section screen... It seemed a cool layout at the time, but I'm thinking this isn't easily possible and I might just have to incorporate a section title on the section screen... But before I rewrite it, I thought I'd ask here. Thanks! -Michael P.S. I'd like to commend the regular posters to this list on being SOOO informative and patient! Every small question to this list always gets several useful answers, even when I've seen questions asked over and again. -- No, my friend, the way to have good and safe government, is not to trust it all to one, but to divide it among the many, distributing to every one exactly the functions he is competent to. It is by dividing and subdividing these republics from the national one down through all its subordinations, until it ends in the administration of every man's farm by himself; by placing under every one what his own eye may superintend, that all will be done for the best. -- Thomas Jefferson, to Joseph Cabell, 1816 -- 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]
RE: [PHP] update two frames at once?
Yes you can.. use Javascript Look here.. http://www.virtualgeoff.com/junkyard/frames/multiple/ Chad -Original Message- From: Michael George [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 3:06 PM To: [EMAIL PROTECTED] Subject: [PHP] update two frames at once? Hello al! Is it possible to have two frames updated when cliking on one link? I have a page that is broken into 4 parts: master title section title d section screen i r . what I want is that when a link is clicked on in the directory (the left column), I'd like to update the section title *and* the section screen... It seemed a cool layout at the time, but I'm thinking this isn't easily possible and I might just have to incorporate a section title on the section screen... But before I rewrite it, I thought I'd ask here. Thanks! -Michael P.S. I'd like to commend the regular posters to this list on being SOOO informative and patient! Every small question to this list always gets several useful answers, even when I've seen questions asked over and again. -- No, my friend, the way to have good and safe government, is not to trust it all to one, but to divide it among the many, distributing to every one exactly the functions he is competent to. It is by dividing and subdividing these republics from the national one down through all its subordinations, until it ends in the administration of every man's farm by himself; by placing under every one what his own eye may superintend, that all will be done for the best. -- Thomas Jefferson, to Joseph Cabell, 1816 -- 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]
RE: [PHP] update two frames at once?
Well in straight/plain html frames.. I dont believe you can. -Tanya On Mon, 12 Mar 2001, Angerer, Chad wrote: Yes you can.. use Javascript Look here.. http://www.virtualgeoff.com/junkyard/frames/multiple/ Chad -Original Message- From: Michael George [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 3:06 PM To: [EMAIL PROTECTED] Subject: [PHP] update two frames at once? Hello al! Is it possible to have two frames updated when cliking on one link? I have a page that is broken into 4 parts: master title section title d section screen i r . what I want is that when a link is clicked on in the directory (the left column), I'd like to update the section title *and* the section screen... It seemed a cool layout at the time, but I'm thinking this isn't easily possible and I might just have to incorporate a section title on the section screen... But before I rewrite it, I thought I'd ask here. Thanks! -Michael P.S. I'd like to commend the regular posters to this list on being SOOO informative and patient! Every small question to this list always gets several useful answers, even when I've seen questions asked over and again. -- No, my friend, the way to have good and safe government, is not to trust it all to one, but to divide it among the many, distributing to every one exactly the functions he is competent to. It is by dividing and subdividing these republics from the national one down through all its subordinations, until it ends in the administration of every man's farm by himself; by placing under every one what his own eye may superintend, that all will be done for the best. -- Thomas Jefferson, to Joseph Cabell, 1816 -- 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] -- 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]
RE: [PHP] update two frames at once?
By saying straight/plain html frames if you mean strictly HTML and no outside scripting language then you are right you cannot. But I don't think anyone is strictly limited to just HTML. Chad -Original Message- From: Tanya Brethour [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 3:21 PM To: Angerer, Chad Cc: 'Michael George'; [EMAIL PROTECTED] Subject: RE: [PHP] update two frames at once? Well in straight/plain html frames.. I dont believe you can. -Tanya On Mon, 12 Mar 2001, Angerer, Chad wrote: Yes you can.. use Javascript Look here.. http://www.virtualgeoff.com/junkyard/frames/multiple/ Chad -Original Message- From: Michael George [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 3:06 PM To: [EMAIL PROTECTED] Subject: [PHP] update two frames at once? Hello al! Is it possible to have two frames updated when cliking on one link? I have a page that is broken into 4 parts: master title section title d section screen i r . what I want is that when a link is clicked on in the directory (the left column), I'd like to update the section title *and* the section screen... It seemed a cool layout at the time, but I'm thinking this isn't easily possible and I might just have to incorporate a section title on the section screen... But before I rewrite it, I thought I'd ask here. Thanks! -Michael P.S. I'd like to commend the regular posters to this list on being SOOO informative and patient! Every small question to this list always gets several useful answers, even when I've seen questions asked over and again. -- No, my friend, the way to have good and safe government, is not to trust it all to one, but to divide it among the many, distributing to every one exactly the functions he is competent to. It is by dividing and subdividing these republics from the national one down through all its subordinations, until it ends in the administration of every man's farm by himself; by placing under every one what his own eye may superintend, that all will be done for the best. -- Thomas Jefferson, to Joseph Cabell, 1816 -- 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] -- 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]
Re: [PHP] update two frames at once?
Hi I had the same problem, and I did not find an answer this way, the only way is with javascript . Rene Michael George wrote: Hello al! Is it possible to have two frames updated when cliking on one link? I have a page that is broken into 4 parts: master title section title d section screen i r . what I want is that when a link is clicked on in the directory (the left column), I'd like to update the section title *and* the section screen... It seemed a cool layout at the time, but I'm thinking this isn't easily possible and I might just have to incorporate a section title on the section screen... But before I rewrite it, I thought I'd ask here. Thanks! -Michael P.S. I'd like to commend the regular posters to this list on being SOOO informative and patient! Every small question to this list always gets several useful answers, even when I've seen questions asked over and again. -- No, my friend, the way to have good and safe government, is not to trust it all to one, but to divide it among the many, distributing to every one exactly the functions he is competent to. It is by dividing and subdividing these republics from the national one down through all its subordinations, until it ends in the administration of every man's farm by himself; by placing under every one what his own eye may superintend, that all will be done for the best. -- Thomas Jefferson, to Joseph Cabell, 1816 -- 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]
Re: [PHP] update two frames at once?
In the index page (change cols amounts to suit your layout): html frameset cols="50%,50%" frame src="menu.html" name="menu" frame src="section.html name="section" /frameset /html Put the menu in menu.html (duh), but here come the fun part. In section.html: html frameset rows="50%,50%" frame src="sectiontitle.html" name="sectiontitle" frame src="sectioncontent.html" name="sectioncontent" /frameset /html Then in the menu frame, to update the section frames: a href="sectionframeset.html" target="section", and put a frameset pointing to separate title and content pages in the sectionframeset.html Clear as mud? Take a look at http://www.geocities.com/tfc_squad/, my attempt at a web page for an ill-fated TFC clan. Sig for a Day Stephan Ahonen, ICQ 491101 "That's very funny Scotty, now beam down my clothes!" Come back tomorrow for a different sig! Backspace a single "s" to reply by email -- 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]
RE: [PHP] update two frames at once?
Doing multiple frames and forms with JavaScript is not really a good idea. Debugging the code for this can become a nightmare... -Original Message- From: Rene Maldonado [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 6:59 PM To: Michael George Cc: [EMAIL PROTECTED] Subject: Re: [PHP] update two frames at once? Hi I had the same problem, and I did not find an answer this way, the only way is with javascript . Rene Michael George wrote: Hello al! Is it possible to have two frames updated when cliking on one link? I have a page that is broken into 4 parts: master title section title d section screen i r . what I want is that when a link is clicked on in the directory (the left column), I'd like to update the section title *and* the section screen... It seemed a cool layout at the time, but I'm thinking this isn't easily possible and I might just have to incorporate a section title on the section screen... But before I rewrite it, I thought I'd ask here. Thanks! -Michael P.S. I'd like to commend the regular posters to this list on being SOOO informative and patient! Every small question to this list always gets several useful answers, even when I've seen questions asked over and again. -- No, my friend, the way to have good and safe government, is not to trust it all to one, but to divide it among the many, distributing to every one exactly the functions he is competent to. It is by dividing and subdividing these republics from the national one down through all its subordinations, until it ends in the administration of every man's farm by himself; by placing under every one what his own eye may superintend, that all will be done for the best. -- Thomas Jefferson, to Joseph Cabell, 1816 -- 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] -- 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]