Two Frames, one action, update both, How?? | | |
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 | | | | re: Two Frames, one action, update both, How??
steve wrote: Quote:
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 | | | | re: Two Frames, one action, update both, How??
[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 | | | | re: Two Frames, one action, update both, How??
Message-ID: <1160731860.309297.50770@i42g2000cwa.googlegroups. comfrom
steve contained the following: Quote:
>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/ | | | | re: Two Frames, one action, update both, How??
Geoff Berrow wrote: Quote:
Message-ID: <1160731860.309297.50770@i42g2000cwa.googlegroups. comfrom
steve contained the following:
> Quote:
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 | | | | re: Two Frames, one action, update both, How??
Erwin Moller wrote: Quote:
[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 | | | | re: Two Frames, one action, update both, How??
Hmm steve <steven.stone4@btopenworld.comwrote: Quote:
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(); | | | | re: Two Frames, one action, update both, How??
Message-ID: <1160734258.826626.33780@f16g2000cwb.googlegroups. comfrom
steve contained the following: Quote:
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/ | | | | re: Two Frames, one action, update both, How??
Geoff Berrow wrote: Quote:
Message-ID: <1160734258.826626.33780@f16g2000cwb.googlegroups. comfrom
steve contained the following:
> Quote:
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 | | | | re: Two Frames, one action, update both, How??
Geoff Berrow wrote: Quote:
Message-ID: <1160734258.826626.33780@f16g2000cwb.googlegroups. comfrom
steve contained the following:
> Quote:
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 | | | | re: Two Frames, one action, update both, How??
Message-ID: <1160992370.139846.132760@i3g2000cwc.googlegroups. comfrom
steve contained the following: Quote:
>
>Just to let you know, I took the frames out and shot them, I'm now
>using CSS and it works lovely
Good man. :-)
--
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/ |  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 226,467 network members.
|