Solved

Left frame on Mac machine taking over the whole screen

Posted on 2000-02-27
15
149 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
 
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
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…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now