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

alternative to 'window.parent.frames'

I have a frameset that breaks my page into 3 sections. Top, middle &
bottom.

My navigation is in the middle part. I use the following code to
change my top & bottom page when a user clicks a link. Problem is, if
they ever hit the back button, the previous top page shows and only if
the hit the previous button again, the previous bottom page shows. The
code I'm using is below:

function redirectToForum ()
{
window.parent.frames("TopFrame").location="../pages/top/topForum.aspx";
window.parent.frames("MainFrame").location="../pages/bottom/bottomForum.aspx";
}
<A onclick="redirectToForum();" style="FONT-WEIGHT: bold; FONT-SIZE:
medium">forum</A>

The most IMPORTANT thing this code accomplishes is that my navigation
page (in the middle) is NOT refreshed after I click a link. Otherwise
I would have used controls. Is there a better way to keep my 3 parts
of the page with the navigation in the middle and be able to change
both top & bottom page without getting that previous page problem?

Any help would be appreciated.
7078895

/ra
Nov 22 '05 #1
1 1704
Cor
Hi SpamProom

Can you tell us what is VB.net language related in this so that we maybe can
give you an answer?

Cor
I have a frameset that breaks my page into 3 sections. Top, middle &
bottom.

My navigation is in the middle part. I use the following code to
change my top & bottom page when a user clicks a link. Problem is, if
they ever hit the back button, the previous top page shows and only if
the hit the previous button again, the previous bottom page shows. The
code I'm using is below:

function redirectToForum ()
{
window.parent.frames("TopFrame").location="../pages/top/topForum.aspx";
window.parent.frames("MainFrame").location="../pages/bottom/bottomForum.aspx
"; }
<A onclick="redirectToForum();" style="FONT-WEIGHT: bold; FONT-SIZE:
medium">forum</A>

The most IMPORTANT thing this code accomplishes is that my navigation
page (in the middle) is NOT refreshed after I click a link. Otherwise
I would have used controls. Is there a better way to keep my 3 parts
of the page with the navigation in the middle and be able to change
both top & bottom page without getting that previous page problem?

Any help would be appreciated.

Nov 22 '05 #2

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

Similar topics

5
by: Lee | last post by:
I am using a modal window and an iFrame to try and pull a return value back. I am doing this across domains. I have the value returned from the modal window to the iFrame window but I can not...
4
by: Erik-Jan Bakker | last post by:
Hi I am not a javascript expert and I have a problem that the guru's in this newsgroup probably can solve quickly. ;-) I've made a webpage with three frames: top, left and mainframe. I...
1
by: SpamProof | last post by:
I have a frameset that breaks my page into 3 sections. Top, middle & bottom. My navigation is in the middle part. I use the following code to change my top & bottom page when a user clicks a...
2
by: Reply Via Newsgroup | last post by:
Folks, I was sure this could be done - or at least sure I had seen reference to it at some point or other - but now, after having gone for a cup of tea, am begining to doubt my original belief....
1
by: Danny | last post by:
I have a frameset with three frames. From one of the frames I generate a new window with the javascript that is at the bottom of this post. From the new window, how can I target a different frame...
1
by: monkeys paw | last post by:
I have a web page with four frames in it. If, within one of the frames, i use a javascript function to do something like: window.location = "app.cgi" Only the frame that contains the JS will...
5
by: chytanya | last post by:
Hi, I have a link in a window; on click of this link a child window is opened; the child window has frames in it; when i try to refresh the parent window from any of the frames in the child...
1
by: jennyzest4u | last post by:
Hi, I 'm trying to access some fields in the parent window from a child window like this.. Here is my parent Jsp, which has the following script.. if (window.opener.parent.frames) { var...
4
by: Frank | last post by:
Hello everyone, I have a problem that the window.opener variable is lost once my popup page has a postback. On multiple pages they address this problem but I cannot find a correct answer. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.