Solved

reload frame on back button click

Posted on 1998-05-18
8
958 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to implement server side field validation and display customized error messages to the client.
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…
Suggested Courses

630 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