473,320 Members | 1,976 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,320 software developers and data experts.

Changing 2 frames in one click

I'm attempting to code a page that uses frames. I have a particular
activity that I wish to have happen.

The left hand pane is the Table of Contents.
The right hand pane shows data.

For some of the links in the left hand pane I need to change both the
left hand AND right hand panes. I need the TOC to switch to a Sub-TOC
and I need the data frame to show the initial page of the Sub-TOC
group.

How can I code it to get this effect?

Thanks In Advance,
Tammy
Jul 23 '05 #1
5 2160
Tammy wrote:
I'm attempting to code a page that uses frames.
And, following this wrong initial decision, a lot of problems will
arise.
For some of the links in the left hand pane I need to change both the
left hand AND right hand panes.


There you go. The first problem. There will be more.
Seriously though, this would be a JavaScript problem if you want to
tackle it with frames.

--
Google Blogoscoped
http://blog.outer-court.com
Jul 23 '05 #2
On 16 Nov 2004 06:15:10 -0800, ta*****@yahoo.com (Tammy) wrote:
I'm attempting to code a page that uses frames.
Never mind. I'm sure the next client will listen to you when you
explain what a bad idea that is.
I have a particular
activity that I wish to have happen.

The left hand pane is the Table of Contents.
The right hand pane shows data.

For some of the links in the left hand pane I need to change both the
left hand AND right hand panes. I need the TOC to switch to a Sub-TOC
and I need the data frame to show the initial page of the Sub-TOC
group.

How can I code it to get this effect?


Link to a new frameset and use target="_top".

Steve

Jul 23 '05 #3
In article <f7**************************@posting.google.com >,
ta*****@yahoo.com enlightened us with...
I'm attempting to code a page that uses frames.
I hope this is not for general internet use. Frames have all kinds of
problems for general internet use that require a great deal of coding to work
around, much of which needs to be server-side scripting. Search engine
problems, printing problems, bookmarking problems...

For some of the links in the left hand pane I need to change both the
left hand AND right hand panes. I need the TOC to switch to a Sub-TOC
and I need the data frame to show the initial page of the Sub-TOC
group.

How can I code it to get this effect?


Javascript.
Which is not recommended for general internet use if it effects usability.
Which this would.
That said...

<script type="text/javascript">
function myNav(leftUrl, rightUrl)
{
top.frames['rightFrameName'].location.href = rightUrl;
top.frames['leftFrameName'].location.href = leftUrl;
}
</script>
<a href="someOtherPageThatDoesntNeedScript.html" onClick="my_nav
('leftUrl.html','rightUrl.html');return false;>link text</a>

Now, what I'd actually do is put that script in a frame whose contents never
change (or in the actual frameset) and call it from the left frame, just so
nothing head-butts when the location changes...

Frames have a place, but that place is CD and intranet apps where you have
full control of the environment and issues such as search engines and
bookmarking just don't come up. They really are very outdated for the web.
(this group is internet focused, therefore the 'www' in the name)

--
--
~kaeli~
Reading while sunbathing makes you well red.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #4
"Philipp Lenssen" <in**@outer-court.com> wrote in message news:<2v*************@uni-berlin.de>...
Tammy wrote:
I'm attempting to code a page that uses frames.


And, following this wrong initial decision, a lot of problems will
arise.
For some of the links in the left hand pane I need to change both the
left hand AND right hand panes.


There you go. The first problem. There will be more.
Seriously though, this would be a JavaScript problem if you want to
tackle it with frames.


Then what do you suggest? I'm a novice at HTML coding and I want to
learn the code, not how to use some crappy software like Frontpage.

What are my options?

Tammy
Jul 23 '05 #5
Tammy wrote:
"Philipp Lenssen" <in**@outer-court.com> wrote in message
news:<2v*************@uni-berlin.de>...
Seriously though, this would be a JavaScript problem if you want to
tackle it with frames.


Then what do you suggest?


To ask in a JavaScript newsgroup, or even better, to state your real
issue you need to tackle (frames are just one possible solution and
there may be a design error you're making).
I'm a novice at HTML coding and I want to
learn the code, not how to use some crappy software like Frontpage.

What are my options?


You can use FrontPage and achieve bad results quickly. You won't even
notice they're bad, and they will actually work on a lot of browsers
today. Or you can learn HTML, CSS, and possibly a server-side language
(forget about client-side JS for the moment), which takes longer but
yields much better results -- especially in the long term, and when
your site starts to grow (and grow in ways you didn't expect).

--
Google Blogoscoped
http://blog.outer-court.com
Jul 23 '05 #6

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

Similar topics

3
by: Thomas Brooks | last post by:
Hi all... Quick question for you. I'm trying to change the contents of a frames page after a user has successfully logged in. I'm running into a little bit of difficulty. Here's what I have...
7
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three...
2
by: MaryA | last post by:
how can i using vbscript in a web form application create link from frame1 to frame2
2
by: Fokke Nauta | last post by:
Hi all, I am searching for a script that can change 2 pages in a frame when clicking on 1 link. Example: I have a frameset with 3 pages (content, banner and main). In the content I want to...
5
by: AES | last post by:
Would appreciate being pointed to a template or a sample web site that will show me how to do the following frame-like organization, without using frames. My objective is a web site done in CSS...
27
by: Murray R. Van Luyn | last post by:
Hi, Is using frames in a website as big an issue nowadays as it was maybe 5 or so years ago? I can remember that you used to have to have a frame site, as well as a non frame site for browsers...
8
by: rn5a | last post by:
I have a HTML page named Index.html which is divided into 3 frames. The URL of 2 of the frames are HTML pages but the 3rd frame houses a ASP page. Now when I go to Windows Explorer, navigate to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.