Char911 Posted August 20, 2003 Posted August 20, 2003 Hello.... Does anyone know the proper coding format to target a link to another frame? I have my link buttons on the left frame and when they are clicked on, I want them to open in the right frame. I want the left frame and the top frame to remain static (if that's the right word). I thought I had it down, but my links are still opening in the same frame the link buttons are in. I have read some very informative tutorial sites, but I still don't understand how to make it work right. Any help appreciated!! Thanks, Char Quote
TCH-JimE Posted August 20, 2003 Posted August 20, 2003 Hi First of all, make sure each frame has a name. ><frame src="index.html" name="leftframe"> Then each time you wish to make a link which will open in that frame (in this came left frame) then@ ><a href="mypage.html" target="leftframe">Main Page</a> Does that make it any clearer? If not, say so and we shall help you some more! Jim Quote
Char911 Posted August 21, 2003 Author Posted August 21, 2003 Yes, thank you Jim, I will try that and let ya know!!! Quote
Char911 Posted August 21, 2003 Author Posted August 21, 2003 Well, that didn't work either. My links are still opening in the wrong frame. Maybe I am coding into the wrong frame. Do I need to put this into the index.html, or the frames where the link buttons are or the frame where I want them to open up into? I feel really stupid, and I really REALLY appreciate your help!! Just to give you an idea on what I am dealing with: my site has 3 frames, and I have named them: topframe, leftframe, rightframe. As you might guess, their associated files are: topframe.html.... etc... I am trying to make the link buttons that I have set up in the left frame, to open up in the right frame, leaving the left frame the same. If you need to see what I am talking about, my site is: www.ajpoa.org Thanks so much... Char Quote
TCH-Dick Posted August 21, 2003 Posted August 21, 2003 Do I need to put this into the index.html, or the frames where the link buttons are you need to put it in the frame the buttons are in Quote
TCH-Dick Posted August 21, 2003 Posted August 21, 2003 I'm not real good with tables, but i think this is what it needs to look like, I may be wrong tho. This is what you have ><form METHOD="LINK" ACTION="calendar.html"> I think this is what you need ><form METHOD="LINK" ACTION="calendar.html" TARGET="rightframe"> Quote
TCH-JimE Posted August 21, 2003 Posted August 21, 2003 (edited) Hi, After having a look, the first thing to fix is the original frameset. I have altered your code to the following: ><html> <head> <title>Page Title</title> </head> <FRAMESET rows="20%,80%"> <FRAME src="AJPOA_files/topframe.htm" name="topframe"> <FRAMESET cols="16%,64%"> <FRAME src="AJPOA_files/leftframe.htm" name="frameleft"> <FRAME src="AJPOA_files/rightframe.htm"name="frameright"> </FRAMESET> </FRAMESET> </HTML> Here is the coding for the buttons. This should work, if not, tell me and I will redo the buttons in a different way ><html> <title>page title</TITLE> <body> <FORM METHOD="LINK" ACTION="calendar.html" Target="frameright"> <INPUT TYPE="submit" VALUE="Calendar"> </FORM> <br> <FORM METHOD="LINK" ACTION="Links.html" Target="frameright"> <INPUT TYPE="submit" VALUE="Links"> </FORM> <br> <FORM METHOD="LINK" ACTION="NewsKudos.html" Target="frameright"> <INPUT TYPE="submit" VALUE="News/Kudos"> </FORM> <br> <FORM METHOD="LINK" ACTION="mailto:cbeard@ajpoa.orgl"> <INPUT TYPE="submit" VALUE="Email WebGuru"> </FORM> </body> </html> Hope this works, let me know! Jim Edited August 22, 2003 by Jimuni Quote
Char911 Posted August 21, 2003 Author Posted August 21, 2003 Well, I must have really done something wrong now... I made the changes and now my site shows up on the internet as a blank page.... I haven't given up yet though... I am still working on it. Thanks, Char Quote
TCH-JimE Posted August 22, 2003 Posted August 22, 2003 Char911, My fault, is saw it this morning as soon as I came in. The frameset page I posted had a <body> tag which is not required when using a frameset. I have changed the coding so now it works fine, really sorry! Jim Quote
Char911 Posted August 22, 2003 Author Posted August 22, 2003 Thank you Jim!! It is in perfect working order now (almost), I just have a few minor bugs to work out, but nothing too difficult. I totally appreciate all your help with this!!! Thumbs Up Rock Sign Thumbs Up Quote
TCH-JimE Posted August 22, 2003 Posted August 22, 2003 Let me know if you have any more problems Jim Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.