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

flip/flop contents of a frame ?

Hi.
I have a frameset with 3 frames that look like a T, with the top frame
containing buttons like a toolbar, the left frame usually containing a
dynamic TOC and the right frame containing the documents to view. In
the toolbar, I have a button that starts a search engine which results
I want to display in the left frame, hiding the TOC. Two buttons in the
toolbar should help choose to display either the TOC or the search
results in the left frame, but without reloading the TOC from the
server nor restarting the search engine.
Is there a way to achieve this?
Thanks.

Feb 24 '06 #1
6 1643
On 24 Feb 2006, Yv*****************@bull.net wrote:
I have a frameset with 3 frames [...]


Get rid of frames! Otherwise you are in bad company:
http://google.com/search?q=%22This+page+uses+frames%22
finds about 24*000*000 fools.

--
All free men, wherever they may live, are citizens of Denmark.
And therefore, as a free man, I take pride in the words "Jeg er dansker!"

Feb 24 '06 #2
<Yv*****************@bull.net> wrote in message
news:11********************@v46g2000cwv.googlegrou ps.com...
Hi.
I have a frameset with 3 frames that look like a T, with the top frame
containing buttons like a toolbar, the left frame usually containing a
dynamic TOC and the right frame containing the documents to view. In
the toolbar, I have a button that starts a search engine which results
I want to display in the left frame, hiding the TOC. Two buttons in the
toolbar should help choose to display either the TOC or the search
results in the left frame, but without reloading the TOC from the
server nor restarting the search engine.
Is there a way to achieve this?
Thanks.


No, not without reloading the page containing the TOC or the search results.
You could use layers and then have them become visible or invisible by
clicking a button but then there would be no purpose in having frames.
IEDesigner
Feb 24 '06 #3
So. Here comes another idea: create 3 vertical frames, the first one
with a width of 0 (or 1), holding the search results, the second with a
width of 300, holding the TOC, and the third with a width of what's
left for documents. How can I program my 2 buttons in the toolbar to
switch the width of the first and second frames (whatever browser is
used)?

Feb 27 '06 #4
<Yv*****************@bull.net> wrote in message
news:11*********************@j33g2000cwa.googlegro ups.com...
So. Here comes another idea: create 3 vertical frames, the first one
with a width of 0 (or 1), holding the search results, the second with a
width of 300, holding the TOC, and the third with a width of what's
left for documents. How can I program my 2 buttons in the toolbar to
switch the width of the first and second frames (whatever browser is
used)?


It may be possible to do what you ask with JS. I'm not a JS guru so for me
finding a solution might take some time. I would start with an onClick event
that would change the width of two frames simultaneously. Try asking your
question in news:comp.lang.javascript
IEDesigner
Feb 27 '06 #5
You're right. Thanks.

Feb 28 '06 #6
I finally found the solution: my 2 buttons have the following links:
<a href=javascript:ShowTOC(); return true;>
<a href=javascript:ShowRes(); return true;>
and the ShowTOC and ShowRes functions look like (MiddleFrame being the
ID I gave the inner frameset):
function ShowTOC() {
parent.document.getElementById("MiddleFrame").cols = "0,300,*";
}
function ShowRes() {
parent.document.getElementById("MiddleFrame").cols = "300,0,*";
}
and all goes like a breeze...

Feb 28 '06 #7

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

Similar topics

1
by: Bart Plessers \(artabel\) | last post by:
Hello, Currently developping a site, where I use some session variables. The site is located at my home computer. Because I have a dynamic IP adress, I use no-ip (www.no-ip.org) to have my...
2
by: Christian Roth | last post by:
Hi, how do I access the contents of a variable (or param) whose name is computed? Pseudo-code for demonstration, NOT WORKING: .... <xsl:param name="table.frame.void">border:...
1
by: clemenr | last post by:
Hi. I would like to know if the following is feasible in JavaScript. I would create a frameset where the top frame includes JavaScript. The bottom frame would be directed to the login page of an...
0
by: crownergis | last post by:
Hello. I'm Johnny Cash. Actually I have a bit of a problem. I have a page with an inline frame. The contents of the frame are wider than the frame (and designed that way). The newest content in...
71
by: Murray R. Van Luyn | last post by:
Hi, Since I have made changes to my website it's been a complete flop. According to the logs, as soon as visitors have downloaded the index page they are off. I can't figure out why? ...
7
by: kumana1 | last post by:
Here's my dilema: My database is built around people and their contact info. On my "data entry form" there is a place for their main address, and on the subform which is attached to the main...
6
by: DRS.Usenet | last post by:
When I run alert("page contents:" + content.document.documentElement.innerHTML); I am able to pull the content. I see something like this page contents:<head><title>A Title</title>...
2
by: as | last post by:
Hi folks, am a newbie in C++ world. Normally I use matlab more often. But right now I want to create a Rising Edge D Flip-Flop model which has two Digital inputs, i.e. INPUTDATA and a CLOCK. The...
5
TMS
by: TMS | last post by:
I'm writing a couple of classes one for a D Flip Flop and one for a JK Flip Flop in C++. The D Flip Flop seems to be working fine, but I'm having issues with the JK Flip Flop. I'm getting garbage...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.