This is a discussion on Two Frames, one action, update both, How?? within the PHP Language forums, part of the PHP Programming Forums category; Hi All, My site has two frames, one with a menu system, one with the selected results. I can select ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi All,
My site has two frames, one with a menu system, one with the selected results. I can select a menu item and get the other frame to reflect that selection. But I want to select 'log out' from the menu and remove the menu sytem as well as putting a default welcome page in to 2nd frame. Any ideas will be gratefully received New to PHP, and HTML Steve |
|
|||
|
steve wrote:
> Hi All, > My site has two frames, one with a menu system, one with the > selected results. > I can select a menu item and get the other frame to reflect that > selection. > > But I want to select 'log out' from the menu and remove the menu sytem > as well as putting a default welcome page in to 2nd frame. > > Any ideas will be gratefully received > > New to PHP, and HTML > > Steve Hi STeve, You are probably new to JavaScript then also. :-) You need Javascript to update more frames at once. That eans that visitors with JavaScript disabled will not be able to use your site. You might consider a setup without frames. If you want to solve it with JavaScript, try something like this: [for more question try cop.lang.javascript] The framedefinition: 2 frames, name them, eg "navframe" and "mainframe" navframe contains a file named nav.php mainframe contains any file. If somebody clicks on 'logout' in nav.php: <a href="" onClick="doLogOut();return false;">logout</a> <script type="text/javascript"> function doLogOut(){ // replace two pages in a frame: top.frames["mainframe"].location="welcome.php"; top.frames["navframe"].location="whatever.php"; } </script> not tested, might contain typos. ;-) Good luck. Regards, Erwin Moller |
|
|||
|
[typocorrections:]
Hi Steve, That *m*eans that visitors with JavaScript disabled will not be able to use your site. If you want to solve it with JavaScript, try something like this: [for more question try co*m*p.lang.javascript] Regards, Erwin Moller |
|
|||
|
Message-ID: <1160731860.309297.50770@i42g2000cwa.googlegroups. com> from
steve contained the following: >But I want to select 'log out' from the menu and remove the menu sytem >as well as putting a default welcome page in to 2nd frame. > >Any ideas will be gratefully received Just link to a new frameset. -- Geoff Berrow (put thecat out to email) It's only Usenet, no one dies. My opinions, not the committee's, mine. Simple RFDs http://www.ckdog.co.uk/rfdmaker/ |
|
|||
|
Geoff Berrow wrote: > Message-ID: <1160731860.309297.50770@i42g2000cwa.googlegroups. com> from > steve contained the following: > > >But I want to select 'log out' from the menu and remove the menu sytem > >as well as putting a default welcome page in to 2nd frame. > > > >Any ideas will be gratefully received > > Just link to a new frameset. > > -- > Geoff Berrow (put thecat out to email) > It's only Usenet, no one dies. > My opinions, not the committee's, mine. > Simple RFDs http://www.ckdog.co.uk/rfdmaker/ Hi Geoff, Thanks for the suggestion, but so new that it means very little to me, how do I link to a new frameset? :-( Steve |
|
|||
|
Erwin Moller wrote: > [typocorrections:] > > Hi Steve, > > That *m*eans that visitors with JavaScript disabled will not be able to use > your site. > > If you want to solve it with JavaScript, try something like this: > [for more question try co*m*p.lang.javascript] > > Regards, > Erwin Moller Hi Erwin, Yes your right I'm also very new to javascript :-) but thanks for replying and offering the help Steve |
|
|||
|
Hmm steve <steven.stone4@btopenworld.com> wrote:
> Any ideas will be gratefully received Just make action on one form then this form will make action on second form -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Ikciu | gg: 718845 | yahoo: ikciu_irsa | www: www.e-irsa.pl 2be || !2be $this => mysql_query(); |
|
|||
|
Message-ID: <1160734258.826626.33780@f16g2000cwb.googlegroups. com> from
steve contained the following: > Thanks for the suggestion, but so new that it means very little to >me, how do I link to a new frameset? You have a page containing two frames. That page is probably called index.htm. This contains code to load other .htm files into two starting frames. Just make a copy of this file and edit it so that it points to two different starting frames. If you save that file as newframeset.htm you can jet to it with the following: <a href='newframeset.htm' target='_parent'>Log out of menu</a> If you want the menu back do the same thing in reverse. That said, frames are generally regarded as the work of the devil these days because of the difficulty in bookmarking pages. -- Geoff Berrow (put thecat out to email) It's only Usenet, no one dies. My opinions, not the committee's, mine. Simple RFDs http://www.ckdog.co.uk/rfdmaker/ |
|
|||
|
Geoff Berrow wrote: > Message-ID: <1160734258.826626.33780@f16g2000cwb.googlegroups. com> from > steve contained the following: > > > Thanks for the suggestion, but so new that it means very little to > >me, how do I link to a new frameset? > > You have a page containing two frames. That page is probably called > index.htm. This contains code to load other .htm files into two > starting frames. Just make a copy of this file and edit it so that it > points to two different starting frames. If you save that file as > newframeset.htm you can jet to it with the following: > > <a href='newframeset.htm' target='_parent'>Log out of menu</a> > > If you want the menu back do the same thing in reverse. > > That said, frames are generally regarded as the work of the devil these > days because of the difficulty in bookmarking pages. > -- > Geoff Berrow (put thecat out to email) > It's only Usenet, no one dies. > My opinions, not the committee's, mine. > Simple RFDs http://www.ckdog.co.uk/rfdmaker/ Thanks Geoff, I'll give it a go, and I'm coming to the same opinion on frames ;-) Steve |
|
|||
|
Geoff Berrow wrote: > Message-ID: <1160734258.826626.33780@f16g2000cwb.googlegroups. com> from > steve contained the following: > > > Thanks for the suggestion, but so new that it means very little to > >me, how do I link to a new frameset? > > You have a page containing two frames. That page is probably called > index.htm. This contains code to load other .htm files into two > starting frames. Just make a copy of this file and edit it so that it > points to two different starting frames. If you save that file as > newframeset.htm you can jet to it with the following: > > <a href='newframeset.htm' target='_parent'>Log out of menu</a> > > If you want the menu back do the same thing in reverse. > > That said, frames are generally regarded as the work of the devil these > days because of the difficulty in bookmarking pages. > -- > Geoff Berrow (put thecat out to email) > It's only Usenet, no one dies. > My opinions, not the committee's, mine. > Simple RFDs http://www.ckdog.co.uk/rfdmaker/ Just to let you know, I took the frames out and shot them, I'm now using CSS and it works lovely :-) Regards Steve |