Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Left frame on Mac machine taking over the whole screen

Posted on 2000-02-27
15
Medium Priority
?
157 Views
Last Modified: 2010-04-09
Howdy,

I have a framed page.  With the frame on the left, when I click on a link in that frame it brings up another html page in that frame.  What happens when it does that is that it takes over the entire page and wipes out the frame on the right.

What would cause this?

Would the width=100% if written more than once in the left frame page cause this? Would the error be in the framset tag or in the table or td tags?

Michael
0
Comment
Question by:morya1
  • 6
  • 5
  • 3
  • +1
15 Comments
 
LVL 8

Expert Comment

by:xabi
ID: 2564012
You must create the frameset as you want but you must give names to all the frames:

ie:

<html>
<head>
<frameset cols="160,*"  frameborder="0" framespacing="0" border="0">
  <frame border="0" frameborder="0" framespacing="0" marginheight="0" marginwidth="0" scrolling="no" src="menu.htm" name="menu">
  <frame border="0" frameborder="0" framespacing="0" marginheight="0" marginwidth="0" scrolling="auto" src="main.htm" name="main">
</frameset>
</head>
</html>

As you can see i have two frames, 1st called "menu" and 2nd called "main".

Now when i want a page to be loaded of right frame i must create the links on "menu" this way:

<a href="foo.htm" target="main">Press here</a>

That's all

xabi
0
 

Expert Comment

by:netzdrache
ID: 2564171
1. Check if you have resize=no in all your frame definitions (goes inside the frame tag itself, along with border, scrolling etc). Name your frames (you need these names for the target below)

2. use the right target in your <a href="..."> tags. Do not use _top, _parent, or _new as frame names, these are reserved words: _top and _parent will cause the linked document to fill the entire window (wiping out the frameset), _new will open a new window.

Using a target that has not been defined in the frameset will also open a new window, so check your spelling of names and targets if a new windo keeps popping up you didn't intend to do so.

feel free to ask if I left out anything -

0
 

Author Comment

by:morya1
ID: 2566281
I will accept this answer however, I have a related question to ask:

If I am looking at the source of a web page that has frames how do I see the source that has the frameset tags/code on it?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 8

Expert Comment

by:jbirk
ID: 2567681
In netscape click the menu view -> page source.  This will usually show the top frame set.  If it doesn't, reload the page and do it again before clicking on any of the frames.  If you're looking for the source of a nested frameset, you can look at it's parent, find out the url of it, and type it in the location bar directly to look at that code (and then choose view page source...).  You can also always check your cache as a last resort :)


-Josh
0
 

Expert Comment

by:netzdrache
ID: 2568231
nothing to add there :-)

0
 

Expert Comment

by:netzdrache
ID: 2568436
well, no, still something to add: in Netscape, you can always type

view-source:my.domain.com/myfile.html

into the address field to access the source code directly. Works as well with .js and .css files. Not in IE, though.

kind regards
0
 

Author Comment

by:morya1
ID: 2569214
Thank you.

Some of this is clear and some not.  What I'm looking to see is the complete frameset code that tells where each frame is placed.  If I understand correctly the idea that Josh gave shows me only the top frameset.

Is there a way I can see all the frameset tags that make up the page?


Michael
0
 
LVL 8

Expert Comment

by:jbirk
ID: 2569425
I mentioned how you can view the nested frames as well.  You just have to look at the top frame, check all the file names for the frames within that top frame.  Then type those file names directly into the location bar.  Then do it again and you can see the source of that frameset...  or use what netzdrache said to view the source "view-source:urltopage"...

Unfortunately when there are nested frames that span multiple documents, you can't view all of them at once unless you open their source in seperate files all at the same time...

-Josh
0
 

Author Comment

by:morya1
ID: 2587863
What I am looking for is the source for the frameset tags.  I would like to see all the frameset tags that tell how a page of frames is laid out.

Can that be done?

Michael
0
 
LVL 8

Expert Comment

by:jbirk
ID: 2590248
Yes, just refer to comments above on how to do this.  Pick one of the methods.  If there is a method you don't understand, and would like it explained a little better, just ask and someone here can help.  Also please specify which browser you are using to do this.

-Josh
0
 

Author Comment

by:morya1
ID: 2614229
I am using ie 5.0 primarily.  I'm still not seeing the frameset tags.  I guess I need a clearer explanation.

Thank you.
0
 
LVL 8

Accepted Solution

by:
jbirk earned 300 total points
ID: 2614524
OK, in IE 5.0 go to the page you want to see.  Click on the file menu "View", select "source" second from the bottom.  This will give you the main frameset.  Looking like this perhaps:
<HTML>
<HEAD>
<TITLE>the title</TITLE>
</HEAD>
<FRAMESET rows="125,*" border=0>
<FRAME src="title.htm" name="title" NORESIZE>
<FRAMESET COLS="187,*" border=0>
<FRAME src="leftside.htm" name="left" NORESIZE>
<FRAME src="main.htm" name="main">
</FRAMESET>
</FRAMESET>
</HTML>

If the frame "main" contains a frameset as well.  Click on the location bar of the browser.  Delete just the file name from the string there (leaving the rest of the url) and type the name of the file which contains the nested frameset.  In this case "main.htm".  Then hit enter.  This will load the sub page frameset into the page without the other frames.  Then proceed to click the menu "View" and then "source".  You can thus get to all the nested framesets.

One possible stopper of this would be a little bit of javascript code which causes the page of the nested frameset to reopen the original frameset.  If this is happening, just prepend the string "view-source:" to the url of the nested frameset and it will open notepad with the source.

Hopefully this is clear enough.  If you are still having trouble please describe exactly what is happening.


-Josh
0
 

Author Comment

by:morya1
ID: 2629097
Thank you!
0
 

Author Comment

by:morya1
ID: 2629106
Thank you!
0
 
LVL 8

Expert Comment

by:jbirk
ID: 2629176
Welcome!  Glad you were finally able to get what you needed.

-Josh
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
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…

885 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