Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Frames - Changing 1 Side

Posted on 2005-03-30
Medium Priority
Last Modified: 2010-04-09
I have a simple split screen frame. I want the left hand side to remain the same at all times. I've placed some buttons on the right hand side but when I click on them they do not load the page I point them to. I've created little intranets before so I know what to type in the URL but I just couldnt get it to work. They would load that page not found screen.

Is there something special you need to do when using frames? Could someone show me an example please. Its a vertical split screen with the left staying the same page at all times.

Thanks very much.
Question by:Ryan Bayne
  • 2
LVL 22

Accepted Solution

RedKelvin earned 500 total points
ID: 13667226
Here is a simple frames example.


      <FRAMESET COLS='150,*'>
            <FRAME SRC="test.htm">
            <FRAME SRC="test2.htm" NAME="test2">

         <DIV align=center>
            This page requires frames, please turn them on in your options and refresh.....or upgrade your browser.

notice that the second (right hand frame) has a parameter NAME, this is useful to point pages you load to this frame. For example, if you use a link in your right hand frame like this

<A HREF="http://www.somesite/somepage.htm" target="test2">test link</A>

when you click this link the somepage.htm page will be loaded in the target location, which in this case is test2 (right hand frame)

also if you are having problems with page not found, try using the full path to the file as in the link example above.
LVL 22

Expert Comment

ID: 13667237
Basically what I was trying to say is that if you always use the target paremeter on all of your links you can control where the page is loaded, and so you can avoid them loading in the left hand frame, so the left frame will always stay the same.
LVL 10

Expert Comment

ID: 13669038
There is nothing special you have to do in frames for a link to find a page. There is an error in your code. If you could post a link to the code, it would help. Otherwise, try the right page without frames until you have it working.  If it works outside of a frame it will work inside of a frame.

RedKelvin is correct about using targets on links (_self works well in this situation); however, that doesn't affect "page not found".
LVL 23

Expert Comment

ID: 13677286
TO put a new page into a frame, just do this --

<A href="newpage.html" target="frame2">load this in frame 2 </A>

The target =  is what you are looking for, perhaps?  Specify the name of the frame for it to go into

<FRAME id="frame2" name="frame2">   -- which is in your frames code.

Featured Post

Independent Software Vendors: 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

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Suggested Courses

572 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