| Author |
Dyamically setting the _top frame in a frameset.
|
Zak Nixon
Ranch Hand
Joined: Sep 27, 2003
Posts: 126
|
|
Hello all. I currently have a top/left/center frame setup. My index page has a set of buttons that link to this frameset, but each button needs to set the _top frame that is displayed based on the button pressed. I am trying to use javascript and JSP to acheive this, but is there an easier way to do this? If anyone has any solutions, please help. Thanks Zak Nixon SCJP SCJD 1.4
|
 |
Bear Bibeault
Author and opinionated walrus
Marshal
Joined: Jan 10, 2002
Posts: 50677
|
|
Zak, please do not cross-post the same question in multiple forums. it wastes people's time when multiple redundant conversations take place, and as you can see it's already wasted two bartender's time. Eric, please close this or the post I moved here from the JSP forum. [ April 13, 2004: Message edited by: Bear Bibeault ]
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15003
|
|
JavaScript parent.frameName.document.location.href="theUrl" plain old html <a href="theUrl" target="frameName">The code button here</a>
|
 |
Zak Nixon
Ranch Hand
Joined: Sep 27, 2003
Posts: 126
|
|
I dont think that answer fits my question. Let me try to rephrase it. I have my index.jsp file that is the initial startup page. It has 5 buttons, each pointing to the same frameset file, called information.jsp. According to which button is pressed, I want the _top frame of the information.jsp frameset to be set to the appropriate .jsp file. I know how to use the constructs given to me in the answer above, but to no avail. All those do is open up the standard frameset that I have created. Any more ideas? Thanks for all your help. Zak Nixon
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15003
|
|
All you want to do is change the location of the frame source?? That is what I was showing above... Not sure what you are talking about exactly...
|
 |
Zak Nixon
Ranch Hand
Joined: Sep 27, 2003
Posts: 126
|
|
Eric, Since I do not want the site to be public yet, is it fine that I email you the site address and a more refined definition of the problem? Do you have AIM or Messenger? Zak AIM: graphicalFreak Email:zaknixon@davidson-tech.com
|
 |
Zak Nixon
Ranch Hand
Joined: Sep 27, 2003
Posts: 126
|
|
Eric, I sent you an email (your hotmail account that was registered at Javaranch) with the problem and site information. Please respond as soon as possible. Thanks again. Zak Nixon
|
 |
Zak Nixon
Ranch Hand
Joined: Sep 27, 2003
Posts: 126
|
|
Eric, Can you help me? Zak Nixon
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15003
|
|
|
I will look at it, but I am under a strict dealdline today for my current project...
|
 |
Zak Nixon
Ranch Hand
Joined: Sep 27, 2003
Posts: 126
|
|
Eric, Thanks for the help. If you have a deadline, thats cool. If you can look at it maybe tonight/tommorrow that would be fine too. Just whenver is convienent for you, but kinda soon for my own personal interests. I appreciate it agian, and good luck with your project. Zak
|
 |
Zak Nixon
Ranch Hand
Joined: Sep 27, 2003
Posts: 126
|
|
If anyone else is interested in helping me solve this problem, read the email I send Eric: (I decided I'd rather get an answer than worry about everyone see it.) Thanks everyone.....
The site can be located at this location: here. Ok, here is the problem statement: 1. Click on the " Information " tab in the menu. You should be inside a frameset called "information_mfs.htm". Located at the _top of this frameset is a page called "content_fs.htm". 2. Go back to the home page. 3. Now, there are 3 more links of concern, the 'Programs', 'Careers', and 'Contact' links. (located on the HOME page) Whenever I click on these links, I want them to go to the same frameset (information_mfs.htm), but the _top frame be populated with different .html pages. For Example, browse to the information_mfs frameset like we did above. Now click on the "Programs" menu button on the left. The _top frame is populated with a page called program_information.html. This is the page I wish to be loaded in the information_mfs frameset whenever I click on the "Programs" button on the Home page. I wish to be able to click on any of those buttons on the HOME page, go to the same frameset (information_mfs.htm) yet be able to see the appropriate _top frame (ie I click the Programs button on the Home page, I should be able to see what we saw in step 3. Is there any way of doing this other than making multiple frameset files? Thank you for your time and valuable help. Zak Nixon
|
 |
Zak Nixon
Ranch Hand
Joined: Sep 27, 2003
Posts: 126
|
|
The link to the site didnt show up. Here it is: http://65.162.110.90/ Test this
|
 |
Zak Nixon
Ranch Hand
Joined: Sep 27, 2003
Posts: 126
|
|
Eric, Have you had time to look at it yet? Zak
|
 |
 |
|
|
subject: Dyamically setting the _top frame in a frameset.
|
|
|