473,406 Members | 2,956 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,406 software developers and data experts.

How Do I Get a Frame To Remember Contents

Hello All,

The page I am using is a frameset page (2framepage.htm) with 2 frames
(mainframe & headerframe).
From this page I have a link that opens a different frameset page
(3framepage.htm) with 3 frames (mainframe, headerframe, menuframe).
I would like the "mainframe" in 3framepage.htm to contain whatever page was
navigated to in 2framepage.htm prior to opening the new frameset page.
In other words "mainframe" needs to remember where it was when swapping
framesets.
The content in "menuframe" and "headerframe" never changes.

Any help would be appreciated.

TIA

Best Regards,
Steve Karnath
Jul 23 '05 #1
1 1249
JavaScript can run cross-frames, so you can store variants, functions in one
frame and call them from another.

An Example for this is - assuming the following statement is in your
menuframe:

alert(parent.name_of_mainframe.location.href); // name_of_mainframe is
defined in you headerframe like: <FRAME name="name_of_mainframe" ...>

To access the header frame, use: alert(top.location.href);

ccton

--
www.vicdir.com
"Steve Karnath" <skarnath(remove-this-txt)@sbcglobal.net>
Hello All,

The page I am using is a frameset page (2framepage.htm) with 2 frames
(mainframe & headerframe).
From this page I have a link that opens a different frameset page
(3framepage.htm) with 3 frames (mainframe, headerframe, menuframe).
I would like the "mainframe" in 3framepage.htm to contain whatever page was navigated to in 2framepage.htm prior to opening the new frameset page.
In other words "mainframe" needs to remember where it was when swapping
framesets.
The content in "menuframe" and "headerframe" never changes.

Any help would be appreciated.

TIA

Best Regards,
Steve Karnath

Jul 23 '05 #2

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, I am wondering if one could do following. I have a main frame with 3 subframes ("top", "left" and "contents") I have a link in the left frame, someting like: <a...
1
by: E.J.M. Fakkeldij | last post by:
Hello, I'm rather new in javascript programming. I have a frame: <frameset framespacing="0" border="0" rows="47,*" frameborder="0"> <frame name="banner" scrolling="no" noresize...
13
by: Kai Grossjohann | last post by:
I have a web app which comprises different frames: a menu bar frame, a search form frame, a result list frame. Depending on the state, only a subset of these frames is available. (Eg, after...
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...
5
by: Martin Chen | last post by:
I have a frame set (as per MS FrontPage 2000). It has a contents and a main frame. The contents frame has a menu bar written with with javascript (in the context of a table). In IE6.1 everything...
4
by: Giggle Girl | last post by:
Is it possible using javascript to copy the entire contents of a frame, at code level, to a hidden frame or even variable or container, so you can spit it out again instantly to a frame in the...
17
by: Bruno | last post by:
I have a feature that is hosted on a different domain from the primary one in a frame, and need to retain values in a cookie. example: A web page at one.com contains a frame which has a page...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
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.