By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,061 Members | 1,539 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,061 IT Pros & Developers. It's quick & easy.

alternative to 'window.parent.frames'

P: n/a
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 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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 20 '05 #2

P: n/a
* sp***********@yahoo.com (SpamProof) scripsit:
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>


Why not ask this question in a JavaScript group? It's in no way related
to VB.NET.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.