469,949 Members | 2,195 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,949 developers. It's quick & easy.

Changing contents of 2 frames: Back button trauma in I.E.

Hi everyone,

Sincere apologies if this has been done to death before.

I have a frameset in 3 columns; 'leftmenu', 'main' and 'rightmenu'. The
content of 'leftmenu' remains the same throughout the site; when I open
a new page in 'main', I want its relevant sub-menu to appear in
'rightmenu'.

function Contents(newPage)
{
parent.rightmenu.document.location.href = newPage + "menu.html"
}

followed by:

<a href="software.html" target="main"
onclick="Contents('software')">Software</a>

will achieve this, as will:

function Contents(newPage)
{
parent.main.document.location.href = newPage + ".html";
parent.rightmenu.document.location.href = newPage + "menu.html"
}

and:

<a href="javascript:Contents('software')">Software</a>

(yes, I've read and understood article 4.24 of the FAQ...)

My problem starts on using the Back button, specifically in I.E. 5.5 and
6:- it (quite logically, I suppose) treats each change as a separate
step, so that one click returns the 'rightmenu' frame to its original
content, a second is needed for the content of 'main'. All beautifully
logical, but apt to confuse users. The Back button in Opera manages both
changes simultaneously.

Any suggestions?

MTIA,

Robin
--
www.newforestartgallery.co.uk
www.badminston.demon.co.uk www.robinsomes.co.uk
www.amazonian-fish.co.uk www.pisces-conservation.com
www.irchouse.demon.co.uk www.blackwell-science.com/southwood
Trust me, I'm a webmaster...
Jul 23 '05 #1
2 1656

"Robin Somes" <ro***@badminston.demon.co.uk> wrote in message
news:SM**************@badminston.demon.co.uk...

My problem starts on using the Back button, specifically in I.E. 5.5 and
6:- it (quite logically, I suppose) treats each change as a separate
step, so that one click returns the 'rightmenu' frame to its original
content, a second is needed for the content of 'main'. All beautifully
logical, but apt to confuse users. The Back button in Opera manages both
changes simultaneously.

Any suggestions?

MTIA,

Robin
--

Try placing some code into your unchanging frame, to check the names of the
documents loaded into the other two. The function could be triggered
periodically or by onload events.
--
Jul 23 '05 #2
In message <40********@mk-nntp-2.news.uk.tiscali.com>, Stephen Chalmers
<me@here.com> writes
My problem starts on using the Back button, specifically in I.E. 5.5 and
6:- it (quite logically, I suppose) treats each change as a separate
step, so that one click returns the 'rightmenu' frame to its original
content, a second is needed for the content of 'main'. All beautifully
logical, but apt to confuse users. The Back button in Opera manages both
changes simultaneously.
--

Try placing some code into your unchanging frame, to check the names
of the documents loaded into the other two. The function could be
triggered
periodically or by onload events.


Thanks; I see your point - I should have mentioned in my original post
that the left (unchanging) frame is the one containing the links and
script.

cheers,
robin
--
www.newforestartgallery.co.uk
www.badminston.demon.co.uk www.robinsomes.co.uk
www.amazonian-fish.co.uk www.pisces-conservation.com
www.irchouse.demon.co.uk www.blackwell-science.com/southwood
Trust me, I'm a webmaster...
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Thomas Brooks | last post: by
3 posts views Thread by John Chen | last post: by
12 posts views Thread by Adam Lipscombe | last post: by
2 posts views Thread by Schraalhans Keukenmeester | last post: by
3 posts views Thread by David Virgil Hobbs | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.