View Full Version : Frontpage with frames help requested.
d0rk
27th January 2004, 13:52
Some backround information first. Im in a class at school and we are rebuilding the school's website. We have to use frontpage 2002 and im trying to use frames for a sidebar with links and a top bar with just an image. Well when I open index.htm where the frames are saved, and I put what I want for the main page to be, save it, and open the page up that I just put in, the page opens with just the frames and not the middle info. Am I doing anything wrong?
If any additional information is needed, just ask and I will provide.
. - .... .- -. ....
27th January 2004, 13:59
the HTML would be nice....
Joel
27th January 2004, 15:05
check your <frame> tags for the correct path for the files
Viper007Bond
27th January 2004, 17:10
Step one: Delete all frames.
Step two: include() (http://www.php.net/include/)
Smeggle
27th January 2004, 22:45
Make your frames . Make standard htm's of your content put this code in your frame: <code> src="name of your htm document here.htm" </code>
see example code below from my site. I src standard htm's to the frame as the frame content. Find it a lot easier than the include attribute which achieves the same thing.
<example code>
<FRAMESET border=0 frameSpacing=0 borderColor=#000000 rows=25,* frameBorder=0>
<FRAME name="_heading" src="sitenav.htm" noResize scrolling="no">
<FRAME name="_body" src="body_files/body_test.htm" scrolling="yes"></FRAMESET>
</example code>
where src = content of head frame and body frame. you would also need a src for your third frame.
Thats how I figured from my book
~ :)
<edit> In fact if you go Here (http://www.trybalink.net/test) you can get a working folder that shows you completely how I built it. Save a copy and you get a copy of the source files also. Go through it (Ignore the css's- thats just me messing about-Learning :D). You'll sharp see how it works.
remember cols="value,*" does the vertical attributes of the frame and rows="value,*" does your horizontal attributes ;) also [after just checking my book :D) you could use this code to split up the body.
<code>
correct syntax is
COLS=column list (The book does not give quotes but us ethem if thats what your comfortable with- I do use them)
[QUOTE]
///Where [I]Column List is a string comtaining the widths of each individual column, specified either as an absolute value in pixels, or a ratio or percentage of the browser width. For eample////
<code example 1>
COLS="20%,*,*" ( here they used the quote attributes[?]
///defines three columns: the first is 20% of the width of the browser window and the second and third take up the rest. The last two are equal in width - in other words, each of them take up 40% of the browser window.////
------------------------------------------
<code example 2>
COLS="100,*,50
///again three columns: this time thefirst is 100 pixels wide, the third is 50 pixels wide and the middle one takes up the remaning browser window.////
------------------------------------------
<code example 3>
<FRAMESET ROWS="30%,*,15%" Cols="1*,3*,2*">
<frame SRC="frame1.html">
<frame SRC="frame2.html">
<frame SRC="frame3.html">
<frame SRC="frame4.html">
<frame SRC="frame5.html">
<frame SRC="frame6.html">
<frame SRC="frame7.html">
<frame SRC="frame8.html">
<frame SRC="frame9.html">
</FRAMESET>
(src html names are for example only)
///Copy that into a htm doc (with header attributes etc) and see what happens. You should get three columns with three rows.
reckon you should be able to figure the rest from there,////
</code>
btw going by what you say of using three frames would supect you will have to use the cols (columns)atribute.
~ :)
fwgx
27th January 2004, 23:06
My complaint with my computer departments website:
I think a Computing Department website that is designed to run SOLELY on IE 5+ is the most terrible thing I have ever seen in my entire life, and I AM including ******.cx in this evaluation. A lot of links for downloads simply do not work in anything except IE so there is no hope for anyone using a standards compliant browser, or a non MS operating system such as *nix, BeOS etc. Many lecture notes on the whole are just plain poor and worthless, although there are notable exceptions. I also have grave concerns about the fact that ALL notes are available in word format ONLY! This is a computing department! It should be embracing standards as stated in the BCS COC, not marketing for big corporations. I'd suggest that all documents be available as html compliant (i.e. passes this: http://validator.w3.org/) and as a platform and OS independent file format, such as PDF. The lack of any web design skills at all is shocking also, every dim-witted egit knows not to use frames because it is impossible to bookmark anything and yet that is exactly what we have.
Standards compliance across the board, this includes document formats, html layouts. A suggestion would be to add a button to all pages so that everyone can check that standards are met. All pages should be checked with a number of browsers such as Mozilla, IE, Netscape, Opera etc. Some kind of template that FORCED all areas of module websites to contain something, so that for example, all revision links actually linked to a page with something actually useful for revision. Lecture notes should be available as PDF, not ppt or doc files and frames should be eliminated at all costs, iframes too as they are not a standard yet. Also access to student drives from external sites should not be tied to one browser as it currently is, not even the very latest Mozilla build will access it, which is about as sad as it gets for a computing department
http://www.google.co.uk/search?q=frames+%2Bbad&ie=UTF-8&oe=UTF-8&hl=en&btnG=Google+Search
Smeggle
27th January 2004, 23:34
Sorry Phily but w3C can't even validate a [I]Close action bracket paremeter of the most basic kind so whats the point. I'm not letting go on this. I copied there code into my browser and it invalidated it? And as well I tested a Frames page at W3C and it told me to basically go play again.i.e. it invalidated all of my frames code.
I really would like to be standard compliant as most would but how when this kind of thing happens?
Sorry of topic I know but the simple proof does exist and I have posted here at a place I frequent quite a lot ([URL=http://www.webproworld.com/]LINK[/URL).
I for one am quite annoyed at this as I have spent a lot of hrs mnths trying to achieve the required standard and when I do, they screw it up!!?!! Like Right..
Back on topic:
Dork, I think the code for just the two columns would be
<code>
<frameset COLS="20%,*,">
///where by dropping the second '*,' it should put only put up two columns one at 20% of the browser window and the remainder taken up by the second'*,' attribute.////
</code>
I'll check it and see... but I reckon with out looking at your html your missing your rows and columns attributes.
~ :)
<edit>
<code>
<FRAMESET COLS="20%,*," border="2" frameSpacing="0" borderColor=#000000 frameBorder="2">
<FRAME name src="index.htm" scrolling="yes">
<FRAME name src="index2.htm" scrolling="yes"></FRAMESET>
</code>
Works :up:
iomegajaz
27th January 2004, 23:48
Originally posted by ethan_h
the HTML would be nice.... =)
d0rk
28th January 2004, 05:01
Sorry...will post that tomarrow. But part of the problem is when I make the main page into the frames using frontpage, it doesn't recongize that I put the main part in it
iomegajaz
28th January 2004, 05:22
Basically...
file 1 - frames.html
<title>
my website
</title>
<frameset>
<frame rows=100,*>
<frame src=header.html>
<frameset cols=100,*>
<frame src=links.html>
<frame src=main.html name=main>
</frameset>
</frameset>
<noframes>
get a frames-capable browser, you jackass
</noframes>
file 2 - header.html
<body background=headerbg.jpg>
<img src=header.jpg>
file 3 - links.html
<head>
<base target=main>
</head>
<a href=stuff.html>Stuff</a>
file 4 - main.html
hi. this is my main content.
Just do that. =D (That probably just confused you more, huh? =))
WomanOfHeart
28th January 2004, 07:36
Do you have to use frames? If not, try using shared borders. I like those better, and you don't have the problems associated with frames.
d0rk
29th January 2004, 13:36
My teacher fixed the problem while I was gone yesterday but here is the HTML for those who wanted it. We are having another problem though, the page looks fine in 1024x768 but looks horrible in 800x600
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
<!-- saved from url=(0058)file://\\Brhs-mail\home\webdesign\My%20Documents\index.htm -->
<HTML><HEAD><TITLE>BRHS Homepage</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<META content=FrontPage.Editor.Document name=ProgId></HEAD><FRAMESET
rows=134,*><FRAME name=banner src="index_files/banner.htm" noResize scrolling=no
target="contents"><FRAMESET cols=171,*><FRAME
style="BORDER-RIGHT: #ffffff 0px solid; BORDER-TOP: #ffffff 0px solid; BORDER-LEFT: #ffffff 0px solid; BORDER-BOTTOM: #ffffff 0px solid"
name=contents src="index_files/menu.htm" target="main"><FRAME name=main
src="index_files/bottomright.htm"
target="contents"></FRAMESET><NOFRAMES>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</NOFRAMES></FRAMESET></HTML>
Smeggle
29th January 2004, 20:41
><FRAMESET
rows=134,*><FRAME name=banner src="index_files/banner.htm" noResize scrolling=no
target="contents"><FRAMESET cols=171,*><FRAME
style="BORDER-RIGHT: #ffffff 0px so..."
name=contents src="index_files/menu.htm" target="main"><FRAME name=main
src="index_files/bottomright.htm"
target="contents"></FRAMESET><NOFRAMES>
I noticed frontpage does this a lot breaking lines of code up. It looks a right mess and bet to a server reads like a right mess. As well some of your attributes haven't got quotes. They need to be there going by the new standards I have been reading. It works without them from what I can tell but thats there standards, not that I am accepting them after what they did the other night..
I used to build in frontpage and then re-open in notepad to tidy up, so the above would become:
<code>
<FRAMESET rows=134,*>
<FRAME name=banner src="index_files/banner.htm">
<FRAMESET cols=171,*><FRAME ..." name=contents">
<FRAME name=main src="index_FRAMESET>
<NOFRAMES>
</FRAMESET>
<NOFRAMES>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</NOFRAMES>
</FRAMESET>
</HTML>
</code>
(some of the code content edited to save on space)
Also, from floating about in places like W3C, the future standard from what I can gather is going to be XHTML. from what I can see of it, it means that the use of Upper case for some attributes is to be dis-continued as a standard.
Thats ok by me as I write in lower case anyway so most of my work is XHTML compliant that way.
example:
so <FRAMESET> becomes <frameset> etc just write every thing in lower case, as afr as I| can see from what I've read in the last few days. I was checking out just what the XHTML is and what it's standard was. That,s what it seemed to say to me, I am open to correction on that, obviously. [:)]
I just finished a web-folder using frames. I used Adobe to throw the 21 pics in to a basic folder and batch resize. I then went into note pad, added a css stlyes doc and an extra frame to the frame structure, played with the hover link targets in the selection icons at the bottom, the backgrounds and that,, and this was the result Here (http://www.trybalink.net/martinlaw/index.htm)
I know frames can give problems with some browsers but as the highest percentage of users use the I.E based platform (in europe anyway, in the states I'd say it's a mix of Netscape/I.E) butI like the control over the page they give me. I can then go even further into that by sourcing table formatted html docs.
glad to hear you got it sorted anyway, but I look at your quotes, get hold of the standard or a standard header code, fill in your details to authour meta tags etc and change any header you have in note pad.
Also frontpage puts a folder called vti_cnf and theres another it does. It causes no end of pain if you try working on docs in notepad - I allways delete them.
~ :)
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.