473,699 Members | 2,413 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1660
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******** ************@v4 6g2000cwv.googl egroups.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******** *************@j 33g2000cwa.goog legroups.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
2791
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 own custom domain name (pvo.no-ip.org) My ISP blocks port 80, so website runs at port 4040 The service no-ip offers "Mask / Cloaking Options": every request to my domain is "wrapped in a frame", so end user can only see one URL in browser.
2
1915
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: none;</xsl:param> <xsl:param name="table.frame.box">border: 1pt solid black;</xsl:param>
1
1886
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 existing content management system. The javascript would then fill in the login name and password of the form, and submit the form to log in. If this works then the bottom frame would be replaced with another page requesting that a link be...
0
1690
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 the frame should be on the left hand side (with scroll bars appearing when necessary to deal with the rest that may not fit). However some users report with scrollbars the contents of the frame right justified rather than left. Is there a way I can...
71
4834
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? http://www.review-a-gadget.com/ Is there anything obvious that I am missing? Are there problems with some browsers? Please let me know if you notice anything.
7
2803
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 form, is a place for the person's home address. I have a checkbox on the main form which I want to use to swap/flip-flop the home address with the main address. The concept I have figured out for the most part, but the code is the actual problem. ...
6
11012
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> <FRAMESET ROWS="75,*">
2
10323
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 functionality of Rising Edge D Flip Flop is that whenever a rising edge of CLOCK signal will occur ( Rising Edge : 0 to 1 ) the output will be the similar state of INPUTDATA signal, otherwise (if it will be not a rising edge and CLOCK signal is 0...
5
9204
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 for the variables when passing from one function to the next. Here is my code for the JK Flip Flop header, class and test: #ifndef JKflipFlop_h #define JKflipFlop_h #include <iostream> class JKFlipFlop { public:
0
8689
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9178
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9035
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8885
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6534
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5875
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4376
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2348
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.