Link to home
Start Free TrialLog in
Avatar of morya1
morya1

asked on

Left frame on Mac machine taking over the whole screen

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
Avatar of xabi
xabi

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

Avatar of morya1

ASKER

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?
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
nothing to add there :-)

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
Avatar of morya1

ASKER

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
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
Avatar of morya1

ASKER

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
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
Avatar of morya1

ASKER

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

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of jbirk
jbirk

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of morya1

ASKER

Thank you!
Avatar of morya1

ASKER

Thank you!
Welcome!  Glad you were finally able to get what you needed.

-Josh