Solved

reload frame on back button click

Posted on 1998-05-18
8
955 Views
Last Modified: 2008-02-01
i am currently using this line of code to alter the contents of a  title frame (in a three framed page) when a
    link is clicked:

    <a href=./gce1.htm onClick="top.title.location='./Tgce.htm'" onMouseover="window.status='Information
    on the Graduate Certificate of Education (Tertiary Education) (./gce1.htm)'; return true;"
    target=main>Graduate Certificate of Education (Tertiary Education)</a>    •<br>

     The three frames in the page are a menu down the left side, a title up the top of the right hand side and
    the main body for the remainder of the right hand side.  I need to find out how to replace the title frame
    with it's original image when the browser's back button is used.
0
Comment
Question by:Spo0n
8 Comments
 
LVL 3

Expert Comment

by:percyn
ID: 1278375
You can control the history of each frame as such...

top.framename.back() or top.framename.go(-1)

0
 

Author Comment

by:Spo0n
ID: 1278376
Coolness but where do I put the new bit of code in relation to the code in the question?
0
 

Author Comment

by:Spo0n
ID: 1278377
It IS working but i need to click the back button a couple of times to get the proper title frame up.  I kinda need it to update the title frame on the one click.  Getting close. :)
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 3

Expert Comment

by:bigelos
ID: 1278378
Update both with one back click means updating both windows at once.  Take a look at
http://members.tripod.com/~HTML_Expert/update_two_frames/1st_frame.html

and tell me if that is how you want your page to work.  If so, I'll tell you how to do it and post as answer.
0
 

Author Comment

by:Spo0n
ID: 1278379
That's just about perfect dude. The only difference in my page is that the menu on the left goes all the way to the top
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 1278380
Bigelos: A JavaScript answer?

Michel
0
 
LVL 3

Accepted Solution

by:
bigelos earned 70 total points
ID: 1278381
SpoOn,
The trick is in creating identical framesets.  If you look at
http://members.tripod.com/~HTML_Expert/update_two_frames/
you can see my directory structure.  In it, you will see 1st_frame.htm and 2nd_frame.html.  Essentially, for each link that you want to update two frames at once and you don't want to have the "Back Button" problem, you will need to create a frameset.

Before you get panicky, remember that all the framesets are identical, so all you have to do is create a master and then copy it over.  Each frameset is only about 1k in size, so no worries about space.  In each link that you want to update two frames, you'll need a link like <a href="another_frameset.html" target="_top">another_frameset</a>.  Then, in another_frameset.html, you can specify the files you want to appear in your other frames.

Hopefully this is understandable, but if not, let me know and I'll try to explain.  If you want, you can post the URL you are having problems with, and I'll copy it over, make some of the  changes, and then post it at one of my sites, just so you can see what I am talking about.
0
 
LVL 3

Expert Comment

by:bigelos
ID: 1278382
If you are really looking for a JavaScript solution, then you will have to create your own "back" button and use javascript to "back up" two frames.  The trick is in getting the user to press your back button instead of theirs.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
age from date of birth 4 51
Javascript Form Change 5 31
Grunt script for Build Process 1 42
How to combine and minify CSS and JS files 5 15
I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question