473,405 Members | 2,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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

Oct 13 '06 #1
10 2687
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
Oct 13 '06 #2
[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
Oct 13 '06 #3
Message-ID: <11*********************@i42g2000cwa.googlegroups. comfrom
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/
Oct 13 '06 #4

Geoff Berrow wrote:
Message-ID: <11*********************@i42g2000cwa.googlegroups. comfrom
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

Oct 13 '06 #5

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

Oct 13 '06 #6
Hmm steve <st***********@btopenworld.comwrote:
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();
Oct 13 '06 #7
Message-ID: <11*********************@f16g2000cwb.googlegroups. comfrom
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/
Oct 13 '06 #8

Geoff Berrow wrote:
Message-ID: <11*********************@f16g2000cwb.googlegroups. comfrom
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

Oct 13 '06 #9

Geoff Berrow wrote:
Message-ID: <11*********************@f16g2000cwb.googlegroups. comfrom
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

Oct 16 '06 #10
Message-ID: <11**********************@i3g2000cwc.googlegroups. comfrom
steve contained the following:
>
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/
Oct 16 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tammy | last post by:
At the website http://www.htmlhelp.com/faq/html/frames.html#frame-update2 I found the following: The JavaScript-based solution uses the onClick attribute of the link to perform the secondary...
3
by: Jim Cobban | last post by:
I have a set of web pages that are organized in pairs. One of each pair contains a graphic and the other is an extended description of the graphic. I am trying to set it up that selecting a single...
3
by: Audrius | last post by:
Hello, I have to iframes within one page. When I triger action in one frame, I need to update the content's of other frame's selection list. How to access second frame's form element from my...
21
by: bird | last post by:
I want to write a multi-frame web page. At level one, it has two frames, saying LEFT and RIGHT. At level two, I split the RIGHT frame into two again, saying UPPER_RIGHT and LOWER_RIGHT. The LEFT...
1
by: | last post by:
Hi, 1st, I did a search and could not find any info on this, the Google results were good, but I'm still have issues...So any help will be great. I have a frame page, which contains 3 frames...
1
by: Keimo Repo | last post by:
Hello I would need some advice, even just speculations... A customer of ours insists on a couple of customer specific design features for our existing multi-customer web application: - A...
3
by: misra.manisha | last post by:
Hi, I am using frames (I know that its not a good practice, but I have to). Each of these frames have separate form variables, all of which are needed in the parent frame. Now, the problem is...
2
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I communicate between frames in a web browser?...
7
by: Flyzone | last post by:
Hello, I have a page defined like this: <html> <frameset> <frame src="./topone.pl"> <frameset> <frame src="./frame1.pl"> <frame src="./frame2.pl"> </frameset> </frameset>
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.