473,500 Members | 1,955 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

document.parent.frame.location = reloading all frames

I have a simple script that uses next and previous buttons to change the
content of another frame in a frameset. Every time I load the target frame, the
frame containing the script is also loaded, clearing out all my variables. I
can work around this issue with cookies, but that seems far too clumsy to be
real. What am I missing?
TheFNG
Jul 23 '05 #1
3 19556
Tricky to figure out without some code

Martin
"JWizardC" <jw******@aol.com> wrote in message
news:20***************************@mb-m06.aol.com...
I have a simple script that uses next and previous buttons to change the
content of another frame in a frameset. Every time I load the target frame, the frame containing the script is also loaded, clearing out all my variables. I can work around this issue with cookies, but that seems far too clumsy to be real. What am I missing?
TheFNG

Jul 23 '05 #2
VK
window.top.frames['frameName'].location.href = works as needed
Jul 23 '05 #3
JWizardC wrote:
I have a simple script that uses next and previous buttons to change the
content of another frame in a frameset. Every time I load the target frame, the
frame containing the script is also loaded, clearing out all my variables. I
can work around this issue with cookies, but that seems far too clumsy to be
real. What am I missing?
TheFNG

Keep track of your variables in a non-changing frame (top.frameName)
or in the frameset document itself(top).
Mick
Jul 23 '05 #4

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

Similar topics

3
2297
by: Alan Clark | last post by:
Dear All I need to do something very simple with Javascript and have been looking all over the web for two days for a suitable script. I'm the kind of person who learns by seeing how it's done....
1
1336
by: kurt | last post by:
greetings, I'm working on a bookmarklet that needs to overwrite the current document with a frameset where the src of one of the frames is the current URL. What I've come up with works in Mozilla...
5
1842
by: imaband | last post by:
Hi, I've got a little Quizzer program that asks a question in the upper frame of a frameset and then lists the answer in the lower frame. Answers can be plain text, straight html, a sound, or a...
2
2187
by: Muffinman | last post by:
Hi, I want to split the result from window.frames.document.location;, this in order to find out which page is currently opened in the specific frame. When I do it like this: var source =...
6
3672
by: skubik | last post by:
Hi everyone. I'm attempting to write a Javascript that will create a form within a brand-new document in a specific frame of a frameset. The problem is that I can create the form and input...
7
2290
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
2278
by: threeflush | last post by:
I have some code that checks to see if a document object exists in a sibling frame before continuing processing like: if (parent.frames.document){ .... } However, sometimes the frame I'm...
2
2863
by: Robert Oschler | last post by:
I have an IFrame whose document is created completely by Javascript code at runtime. The document in the IFrame accesses Javascript functions in the top level document. This works fine most of...
6
1877
by: David Mark | last post by:
On Jul 27, 9:37 pm, Jonas Smith <jonas.sm...@yahoo.comwrote: Here somebody has regurgitated a lot of bad examples in a very bad color scheme, but there are a couple of useful ideas to be found: ...
0
7136
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
7018
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...
1
6906
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
7397
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
4611
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...
0
3106
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1430
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
316
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...

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.