Solved

Left frame on Mac machine taking over the whole screen

Posted on 2000-02-27
15
154 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: 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!

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Read text on Table 7 49
PHP Command to Open New Tab/Page using Window.Open 3 33
Editing .asp website 5 32
CSS background-color 5 19
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

739 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