Solved

Frame target from a Form Input tag?

Posted on 1997-12-18
4
320 Views
Last Modified: 2012-06-27
Hi,
I am setting up some web pages that will include a navigation bar in a frame at the bottom of the page.  My ultimate goal is to have a different navigation bar, depending on where the user originally came from, even though most of the web pages in the upper main frame would be the same, regardless.  This is an educational site, where for example, students from a particular class would be presented with a different navigation bar at the bottom, than students in a different class.  Most of the pages they access in the upper frame would be the same, but some would be particular to that class.

I have no problem getting most of this to work.  But, I am having a problem with one of the pages that would be accessed from the navigation bar.  It is a "chat" program, that requires the user to login with a username and password.  The login page loads fine, with the navigation frame remaining at the bottom of the screen.  However, when the user "submits" his/her username and password to enter the chat room, a completely new window loads, without frames.  The "Enter Chat Room" submit button is an input form tag.  I know I can target a link from an "anchor" tag, but is it possible to target and input form tag?  Or, is there any other way to get the chat program to load without losing the navigation frame?

I have a test of this setup at http://nutrition.uvm.edu/weightloss/frame.html
You can see that the frames load nicely.  If you try entering the username TEST and the password 123, then press the "enter" button, the new page loads without the bottom navigation frame.

Any ideas?

Thanks in advance,
Stephen Pintauro
0
Comment
Question by:sjp060497
[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
  • 2
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
rets earned 100 total points
ID: 1842314
Change _top to _self or main.  _top is the special target that goes to the 'top' and takes the whole browser back.  main is the name of the frame (per frame.html)

-K
0
 

Author Comment

by:sjp060497
ID: 1842315
Hello rets,
Thank you for your response.  However, I am still a bit confused.  Where, exactly would I add the "_self" target or the "main" target.  I tried adding the <base target="main"> or <base target="_self"> tags after the head tag in both the login html page, and the chat room html page.  Neither worked.  In all cases, when you enter the chat room, the browser window loses the navigation frame at the bottom.  Can a target be added within the <input> tag?

Thanks,
Stephen Pintauro
0
 
LVL 1

Expert Comment

by:rets
ID: 1842316
Replace this line in your HTML (/login/index.html):

<FORM Method="POST" ACTION="/eshare/server?action=61" TARGET="_top">

with:

<FORM Method="POST" ACTION="/eshare/server?action=61" TARGET="main">
0
 

Author Comment

by:sjp060497
ID: 1842317
Hello again, rets,
Thanks for your additional comments.  It now works great!.....kinda :)
I can now go to the chat room page with the navigation bar remaining in the bottom frame.  The problem now is that when I press the "exit" button for the Java chat client, the page returns to the login page without the lower navigation bar frame.  This seems to me to be a trickier problem, since I do not have access to the Java code that controls the exit button on the Java chat client.  The chat software "administration" controls allow me to specify an exit URL.  So, I could specify any page, even the frame.html page, but that would then apply to everyone who presses the exit button, even those who I do not intend to have return to the frame.html page.  The other "administrative" option I have with the Java client is to specify any "header" or "footer" html on the chat page.  That is how I added the Department of Nutrition and Food Sciences title to the top of the chat page, and the email contact at the bottom of the chat page.  

Can you think of any way that I could make use of these administrative options to get the chat program to return to the frames page when someone exits the chat client?

Thanks again,
Stephen Pintauro
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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
Html split(text) Part2 6 38
CSS for <center> 14 47
How to pass values to HTML-5 attribute dynamically? 24 62
Search Box CSS Question 16 40
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

738 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