Home / Internet & Networking / Web design / Frame help
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2  All - (Bottom) Print
Author Topic: Frame help  (Read 507 times)
nymph4
Topic Starter
Mentor



Posts: 1,615


« on: January 04, 2012, 04:44:03 PM »

I know Frames are not to be used anymore but I am doing a Frame for myself.

<HTML>
<TITLE>Roberts Art Gallery</TITLE>
<FRAMESET COLS="30%,70%">
<FRAME NAME="A" SRC="links.html">
<FRAME NAME="B" SRC="home.html">
</FRAMSET>
</HTML>

The code works good I have a 2. sided Frame and all my Links show up in the Left side. And my Home page shows up in the Right side.

Now all my Links I code like this
<A HREF="resume.html" TARGET="b">

Because I want the link to open the new page in the Right side of the Frame.
And I gave my Right side of the Frame a Name of "b"

But when I click on a link it opens the page in a whole new iE window and not even in the Frame at all.

What am I missing?
Thanks for the help
IP logged
Veltas
Intermediate



Thanked: 7
Posts: 154

Certifications: List
Computer: Specs
Experience: Experienced
OS: Windows 7

1
« Reply #1 on: January 04, 2012, 05:00:06 PM »

I know Frames are not to be used anymore but I am doing a Frame for myself.

Contrary to popular belief, Frames are supported by the current specification, just not HTML 5.

However, if you're really worried about 'proper coding' stop typing your tags in capital letters!  They're supposed to be lower-case (and I'm doing you a favour in telling you this, really, as it's easier to type lower case tags anyway).

Talking of case, your strange habit has likely caused the error you made as the target and name are different cases!  I'm pretty sure this is case-sensitive, change the target to "B" rather than "b" or change the name to "b" rather than "B" to solve your issue, because "b" and "B" are not the same thing.
IP logged
blindhelpfultech
Rookie



Posts: 39

Certifications: List
Computer: Specs
Experience: Expert
OS: Windows 7



« Reply #2 on: January 04, 2012, 07:14:55 PM »

frames are bad for accessablty unless you costom code them but wish you luck
IP logged

A great leader is not one who always leads, but sits back in the back, watches others lead to make themselves better One who says "I know everything about technology and says they have a certification to prove it" Forgot the first rule of life, you never stop learning." Keeping in mind that everyone learns different kindness and patience go much further then disrespect rudeness" If you learn something from someone then your successful and you help others that Measures you as a person not a cert.
nymph4
Topic Starter
Mentor



Posts: 1,615


« Reply #3 on: January 04, 2012, 08:35:42 PM »

Thanks for your help it all works now.
IP logged
Veltas
Intermediate



Thanked: 7
Posts: 154

Certifications: List
Computer: Specs
Experience: Experienced
OS: Windows 7

1
« Reply #4 on: January 05, 2012, 01:57:57 PM »

frames are bad for accessablty unless you costom code them but wish you luck

And whose fault is that?  The browser's fault for not providing better accessibility, and the site's fault for not providing a fall-back option for those in need of said accessibility.
IP logged
blindhelpfultech
Rookie



Posts: 39

Certifications: List
Computer: Specs
Experience: Expert
OS: Windows 7



« Reply #5 on: January 05, 2012, 02:00:42 PM »

And whose fault is that?  The browser's fault for not providing better accessibility, and the site's fault for not providing a fall-back option for those in need of said accessibility.
thats what I think too but thought I would say something
IP logged

A great leader is not one who always leads, but sits back in the back, watches others lead to make themselves better One who says "I know everything about technology and says they have a certification to prove it" Forgot the first rule of life, you never stop learning." Keeping in mind that everyone learns different kindness and patience go much further then disrespect rudeness" If you learn something from someone then your successful and you help others that Measures you as a person not a cert.
blindhelpfultech
Rookie



Posts: 39

Certifications: List
Computer: Specs
Experience: Expert
OS: Windows 7



« Reply #6 on: January 05, 2012, 02:05:40 PM »

if your qusation has been solved please click that boton it will prevent a lot of people from trying to help you when you found out what was wrong.
About accesssbly on ifames I can navagate them fine if it is not html 5. The w3guide lines for some reason tells you that you should not have them I really do not care what you have as long as I can veiw it myself. Glad you found that. This coding seems to make more logical sence to me now so thanks to all who replyed
IP logged

A great leader is not one who always leads, but sits back in the back, watches others lead to make themselves better One who says "I know everything about technology and says they have a certification to prove it" Forgot the first rule of life, you never stop learning." Keeping in mind that everyone learns different kindness and patience go much further then disrespect rudeness" If you learn something from someone then your successful and you help others that Measures you as a person not a cert.
nymph4
Topic Starter
Mentor



Posts: 1,615


« Reply #7 on: January 06, 2012, 04:22:47 PM »

Thanks for help
IP logged
BC_Programmer
Mastermind


Thanked: 697
Posts: 15,878

Computer: Specs
Experience: Beginner
OS: Windows 7


Pinkie Pie is best pony

BC-Programming.com 1 1
« Reply #8 on: January 07, 2012, 08:00:34 AM »

They're supposed to be lower-case

Uh, no. HTML4 and HTML5 tags are case-insensitive. XHTML is case-sensitive by virtue of being based on XML rather than SGML, though. XHTML of course being a complete waste of everybody's time anyway for reasons I won't get into. Of course since it's case-insensitive it doesn't really matter which one anybody uses, though lower-case seems to be the new favourite. It's not "supposed" to be lower-case, though.

Quote
The browser's fault for not providing better accessibility
Except the fact is that by virtue of having multiple frames of content it's impossible to actually make it accessible in a consistent manner, since it multiplies the amount of content and there isn't any information available to any accessibility mechanism over what it is. Is that frame a navigational bar, or does it host the main site content? Is this frame a pointless header? etc. Without hinting like that it would be impossible for the browser to provide meaningful accessibility, but the only way to add that would be to implement non-standard tags and tag attributes within the browser, meaning it would only work on that browser.

Or, on the other hand, the site author could save everybody time and grief by not using HTML tags that should be left in 1996 where they belong, along with their relatives <BLINK> and <MARQUEE>. And the browser developers can work on implementing something more useful.

 and the site's fault for not providing a fall-back option for those in need of said accessibility.
IP logged

My Blog

BASeBlock 2.3.0 (NOW WITH MACGUFFINS!)
Veltas
Intermediate



Thanked: 7
Posts: 154

Certifications: List
Computer: Specs
Experience: Experienced
OS: Windows 7

1
« Reply #9 on: January 08, 2012, 05:53:17 AM »

Uh, no. HTML4 and HTML5 tags are case-insensitive. XHTML is case-sensitive by virtue of being based on XML rather than SGML, though. XHTML of course being a complete waste of everybody's time anyway for reasons I won't get into. Of course since it's case-insensitive it doesn't really matter which one anybody uses, though lower-case seems to be the new favourite. It's not "supposed" to be lower-case, though.

I'm aware this is only a requirement for XHTML, however it's a good idea to keep lower-case in case he decides to switch to XHTML in future, and I'm pretty sure lower-case is recommended somewhere in the specification for HTML 4.  Even so, it is a lot easier to write tags in lower-case.

Quote
The browser's fault for not providing better accessibility
Except the fact is that by virtue of having multiple frames of content it's impossible to actually make it accessible in a consistent manner, since it multiplies the amount of content and there isn't any information available to any accessibility mechanism over what it is. Is that frame a navigational bar, or does it host the main site content? Is this frame a pointless header? etc. Without hinting like that it would be impossible for the browser to provide meaningful accessibility, but the only way to add that would be to implement non-standard tags and tag attributes within the browser, meaning it would only work on that browser.
...
and the site's fault for not providing a fall-back option for those in need of said accessibility.

Okay then, maybe it's not the browser's fault.  But still, it's trivial to provide an accessible option like you mentioned, so yeah it's the site's fault.

Or, on the other hand, the site author could save everybody time and grief by not using HTML tags that should be left in 1996 where they belong, along with their relatives <BLINK> and <MARQUEE>. And the browser developers can work on implementing something more useful.

Links within frames require less content be loaded without the use of JavaScript each time a link is followed, so for media-rich websites this can be quite useful.  Also frames provide good page management without JavaScript to fit to a limited window size, rather than scrolling downward.
IP logged
kpac
Web moderator
Moderator
Hacker



Thanked: 180
Posts: 5,874

Certifications: List
Computer: Specs
Experience: Expert
OS: Windows 7
kpac®

1 1 1
« Reply #10 on: January 08, 2012, 03:46:32 PM »

Quote
Even so, it is a lot easier to write tags in lower-case.
Though I don't disagree, some do. (hint...BC ;D)
His logic, I believe, comes from the fact that you're holding down the shift key to enter the less/greater than sign, so it's just as easy to keep it held while typing the tag.

Quote
Links within frames require less content be loaded without the use of JavaScript each time a link is followed, so for media-rich websites this can be quite useful.  Also frames provide good page management without JavaScript to fit to a limited window size, rather than scrolling downward.
I'm not sure where javascript comes in. Frames are generally a bad idea in today's browsers, and it's a LOT more accessable and browser-friendly to use CSS. Server-side can always be used to determine the browser.
IP logged

Veltas
Intermediate



Thanked: 7
Posts: 154

Certifications: List
Computer: Specs
Experience: Experienced
OS: Windows 7

1
« Reply #11 on: January 08, 2012, 04:03:57 PM »

I'm not sure where javascript comes in. Frames are generally a bad idea in today's browsers, and it's a LOT more accessable and browser-friendly to use CSS. Server-side can always be used to determine the browser.

To get the same effect as frames you need JavaScript (or some plugin I've never heard of that does it too).  CSS 2 will arrange content but only as good as a table will and it scrolls, but frames fit within the... window frame.

Server-side can be used to determine the browser?  More like client-side!  Do we really send client information to a server every time we access it?  I wouldn't know... I do know it's easier to determine the browser with JavaScript though!
IP logged
kpac
Web moderator
Moderator
Hacker



Thanked: 180
Posts: 5,874

Certifications: List
Computer: Specs
Experience: Expert
OS: Windows 7
kpac®

1 1 1
« Reply #12 on: January 08, 2012, 05:08:47 PM »

Quote
To get the same effect as frames you need JavaScript
Or CSS. Haven't you heard of percentage-based layouts?

Quote
Server-side can be used to determine the browser?
Yes, quite easily with this class.
IP logged

Veltas
Intermediate



Thanked: 7
Posts: 154

Certifications: List
Computer: Specs
Experience: Experienced
OS: Windows 7

1
« Reply #13 on: January 08, 2012, 05:53:50 PM »

Or CSS. Haven't you heard of percentage-based layouts?

I didn't realise you could use a percentage of the height though, that's the issue.  I've tried it before and it didn't work...

Yes, quite easily with this class.

Cool, I didn't know we sent our browser info to the server when requesting a web page.
IP logged
Raptor
Guest
« Reply #14 on: January 08, 2012, 05:54:53 PM »

Why not use the object tag?

http://www.w3schools.com/TAGS/tag_object.asp

Will pass XHTML validation if you do it properly and you still get to embed stuff.
IP logged
Pages: [1] 2  All - (Top) Print 
Home / Internet & Networking / Web design / Frame help « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.15 seconds with 21 queries.