Jump to content

Recommended Posts

Posted

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 :)

Posted

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

Posted

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!! :D

 

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

Posted

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">

Posted (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 by Jimuni
Posted

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

Posted

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...