Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   Internet Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=25)
-   -   Help with Frames (https://www.cableforum.uk/board/showthread.php?t=14367)

Florence 04-07-2004 21:26

Help with Frames
 
This maybe the wrong place to ask but well if it needs moving then please feel free to move this to an appropriate forum.

I am building an ecommerce website for my college course. I was almost finished when I found out I had to use frames as well. I have one page left to do and I am trying to make it frames.
Bad idea I have been hitting my head against a wall of frames ever since. I have some frames working and one still not working. I also have a problem that the buttons that are part of the theme all through the website will link into one frame so if anyone tries to use them while on the frame page the next page is stuck in one of the frames.
Any advice to help solve this would be appreciated.


the link to the page is here

MovedGoalPosts 04-07-2004 21:29

Re: Help with Frames
 
Don't know a great deal, but to help others assist, what software are you using to setup your site?

Paul K 04-07-2004 21:31

Re: Help with Frames
 
Hmmm I go caught the same way when I first used frames, linking to the wrong frame. Someone will no doubt explain how to save your frameset and link to it properly and then I'll learn too lol ;)

Florence 04-07-2004 21:38

Re: Help with Frames
 
I have built the whole site in notepad

punky 04-07-2004 21:39

Re: Help with Frames
 
Firstly, with the button problem: To change which frame loads a page when you hit a link, you add this to the html head:

Code:

<base target="framename">
Where framename is obviously the name of your frame. That makes all links on that page open up in framename. If you want to do it on a per-link basis, just add:

Code:

target="framename"
Inside the anchor "<a>" tag.

I'm not sure what you mean with your first question, what is wrong with it?

HTH though.

Alanmelon 04-07-2004 21:49

Re: Help with Frames
 
First of all it would look like you need to remove the header graphic and individual buttons from cars.html, company.html, link.html and carriages.html. That will stop them coming up in the frame too.

You then need to enable scrollbars on the frame used for the content...I'll look this up....

EDIT - Include the SCROLLING syntax as follows; <FRAME SRC="whatever" SCROLLING="yes">

MetaWraith 04-07-2004 21:55

Re: Help with Frames
 
Quote:

Originally Posted by Paul
Hmmm I go caught the same way when I first used frames, linking to the wrong frame. Someone will no doubt explain how to save your frameset and link to it properly and then I'll learn too lol ;)

I find its easiest to create and test the pages separately, then hand write the frameset page and modify the link urls to load in the appropriate frame.

Here is an OLD (ancient) page of mine using frames
http://meltingpot.fortunecity.com/bl...z/wdwiz_fs.htm

TIP
View source from the browser menu views the frameset source
Left Clicking into a frame then right click and selecting view source,views the source for that frame.

Here are 2 good tutorials for frames
http://www.htmlcodetutorial.com/frames/frames.html
http://www.w3schools.com/html/html_frames.asp

Florence 04-07-2004 22:03

Re: Help with Frames
 
I have a page that I am splitting into 4 frames.

the top frame now loads but the buttons put the rest of the site in one frame. The two middle frames now load.
The fourth the footer will not load.

Alanmelon 04-07-2004 22:10

Re: Help with Frames
 
<frameset rows="170,50%,*">
<frame name="top" scrolling="no" noresize target="middle" src="1.htm">
<frameset cols="*,*"> There should be at least one value/percentage here
<frame name="middle" target="left" src="video.htm" scrolling="no">
<frame name="middle" target="right" src="links.htm">
</frameset>
You need to insert <frame name="bottomframe" etc> here to display your last frame here, then finish with </frameset>
<noframes>
<body>

<p>This page uses frames, but your browser doesn't support them.</p>

</body>
</noframes>
</frameset> This is in the wrong place

Florence 04-07-2004 22:11

Re: Help with Frames
 
Quote:

Originally Posted by Alanmelon
First of all it would look like you need to remove the header graphic and individual buttons from cars.html, company.html, link.html and carriages.html. That will stop them coming up in the frame too.

You then need to enable scrollbars on the frame used for the content...I'll look this up....

EDIT - Include the SCROLLING syntax as follows; <FRAME SRC="whatever" SCROLLING="yes">

The whole website is using those for navigation and I was trying to keep the theme through the website. Frames werenââ‚ÆšÂ¬ÃƒÂ¢Ã¢â‚¬Å¾Ã‚¢t in my original plans but I apparently have to have at least one page to pass.


:banghead: Frames :banghead:

Alanmelon 04-07-2004 22:13

Re: Help with Frames
 
Quote:

Originally Posted by Kits
The whole website is using those for navigation and I was trying to keep the theme through the website. Frames werenââ‚ÆšÂ¬ÃƒÂ¢Ã¢â‚¬Å¾Ã‚¢t in my original plans but I apparently have to have at least one page to pass.


:banghead: Frames :banghead:

But with it all running from the same index page, the link buttons will be consistent now anyway.

Florence 04-07-2004 22:21

Re: Help with Frames
 
no its still opening all pages in one frame if you use the buttons on the links page

Alanmelon 04-07-2004 22:23

Re: Help with Frames
 
Do you want the pages to open in a whole new browser window? If so, use the code <TARGET="_blank">

Sorry just re-read your posts - am I right in thinking that you want to maintain the link buttons which are present on all the other content pages, but then want them to open in the main browser window, rather than the same frame?

You will still maintain the theme of the site by deleting the buttons on each of those pages, and allowing the user to navigate solely from the links in the top frame.

Florence 04-07-2004 22:35

Re: Help with Frames
 
I havent got one index page each page has the links to the whole site.

I really don't want to mess around with the site too much most is now complete. Its just this frames page that has now been a big headache for a while I tried to cheat using an iframe but was told on this weekend that wouldn't get me a pass.


the website starts here and only the links page that is frames hasn't been added

Alanmelon 04-07-2004 22:48

Re: Help with Frames
 
Well then I guess it all depends how much use you have to make of the frames, you could knock up a quick links page which just fits in as per the frame design below, and target the 'link' link at the top to it.

Florence 04-07-2004 22:57

Re: Help with Frames
 
I wasn't planning on using frames and perhaps will never again. Its just the examiner for college wil not pass the site without frames somewhere

Matth 04-07-2004 23:13

Re: Help with Frames
 
If you want to replace the level above the frame, TARGET="_parent", to replace the lot TARGET="_top"

Another problem you can find with multiframe layouts, is that wiythout resorting to (potentially disabled) javascript, you can only refrest one frame as a link - unless you split the frameset into two levels.

Eg. Level 1, is a top and rest frameset named navbar and navbody.
Level 2, another frameset page (more than one of them) can load a left and right frame in the navbody area - you can still reference the frames individually, and you can also replace the entire navbody by loading a different frameset - it's a powerful trick, but you really need a clear picture of how you want to organize the frames.

Florence 04-07-2004 23:42

Re: Help with Frames
 
Thank you all for the helpful advice I now have the buttons reopening in the original window.

This just leave me the problem of the footer.htm not working

I am now well on the way to completing this after a long struggle and giving up finding the answers myself.

Again thank you to all who have helped me complete this task. :tu:

Edited to say the whole page is now working and about to be added into the main site.

A really big thank you to you all that replied reps have been given for this help.

Do I build another website using only notepad or go into some other form of editor. It was fun using notepad just the frames that spoilt it.

Thanks all again..

altis 05-07-2004 10:19

Re: Help with Frames
 
Before you hand it in, you could slip in the following link somewhere for your examiner to follow ;)
http://www.google.co.uk/search?q=i-h...e+Search&meta=

Why not trade up to TextPad - it automatically highlights HTML tags for you :D
http://www.textpad.com/
...and it's what I use too ;)

Florence 05-07-2004 15:16

Re: Help with Frames
 
Quote:

Originally Posted by altis
Before you hand it in, you could slip in the following link somewhere for your examiner to follow ;)
http://www.google.co.uk/search?q=i-h...e+Search&meta=

Why not trade up to TextPad - it automatically highlights HTML tags for you :D
http://www.textpad.com/
...and it's what I use too ;)


Great link it matches my name on MSN where I have "Kits has had help but still hates frames I tell you they are EVIL"

Will send the link to her by email with the link to my website for her to examine it and get the source codes.

I was sent all sorts of HTML editors but I felt more comfortable using notepad until I hit the frames nightmare...

You can all pass judgemant on the website soon when the last little bits go up..
and its moved to the hosting company for marking.

Again CF members have saved the day and rescued my sanity..

Matth 05-07-2004 22:05

Re: Help with Frames
 
http://www.pspad.com/ - I actually use 1stPage 2000 from EVRSOFT though - STILL waiting for the next version to be anything other than vapourware.
PSPAD has had considerable praise as a general text editor with HTML and other code enhancements.

Actually though, a lot of stuff, I edit it in as if it was notepad - really ought to make more use of the abilty to have code snippets to paste in - I like to know the structure, and I truly hate bloated, unreadable, illogical generated code.

Florence 05-07-2004 22:35

Re: Help with Frames
 
I have noticed how much uneeded code there is in others websites they are building for the course and feel I made the right decision to go with notepad.

MetaWraith 05-07-2004 22:54

Re: Help with Frames
 
Learning to edit the html by hand will always stand you in good stead. Various editing tools out there are just that TOOLS. You will learn far more working natively.

Frames do take a wee bit to get used too. These are the stages I use.
1) Develop the individual pages in whatever manner you prefer
2) Write the framset page and check initial pages load
3) Edit links within pages to point to the correct frames

My own preference for text editors are
1) Editpad Classic/Lite for general work
2) Editpad Pro for html, javascript, css etc

Glad you got things sorted. :D

Florence 06-07-2004 00:50

Re: Help with Frames
 
Well the page is working and the code I have is:-

Quote:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>New Page 2</title>
<base target="blank">
</head>
<frameset rows="170,50%,*">
<frame name="top" scrolling="no" noresize target="middle" src="1.htm">
<frameset cols="50%,*">
<frame name="middle" target="left" src="video.htm" scrolling="yes">
<frame name="middle" target="right" src="links.htm">
</frameset>
<frame name="bottomframe" target="middle" src="footer.htm">
</frameset>
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</html>
and it displays like this limo2carriage

I am just checking the content to be sure its all alright and typing up terms& conditions It has now moved to my main hosting site from NTLs webspace that I have been using as my test site.


All times are GMT. The time now is 18:28.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum