Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Frame help  (Read 12830 times)

0 Members and 1 Guest are viewing this topic.

nymph4

    Topic Starter


    Specialist

    Frame help
    « 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

    Veltas



      Intermediate

      Thanked: 7
      • Yes
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Linux variant
    Re: Frame help
    « 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.

    blindhelpfultech



      Beginner
    • Nadia
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows 7
    Re: Frame help
    « Reply #2 on: January 04, 2012, 07:14:55 PM »
    frames are bad for accessablty unless you costom code them but wish you luck
    Great learders know they don't know everything and that is OK to say they have no idea. Doing that they will allow them to not knowing is not a problem, it leaves you to be open minded to learn from others It is OK to ask for detail and learn from those that as we are are all new at something and have our skill set.

    nymph4

      Topic Starter


      Specialist

      Re: Frame help
      « Reply #3 on: January 04, 2012, 08:35:42 PM »
      Thanks for your help it all works now.

      Veltas



        Intermediate

        Thanked: 7
        • Yes
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Linux variant
      Re: Frame help
      « 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.

      blindhelpfultech



        Beginner
      • Nadia
      • Computer: Specs
      • Experience: Experienced
      • OS: Windows 7
      Re: Frame help
      « 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
      Great learders know they don't know everything and that is OK to say they have no idea. Doing that they will allow them to not knowing is not a problem, it leaves you to be open minded to learn from others It is OK to ask for detail and learn from those that as we are are all new at something and have our skill set.

      blindhelpfultech



        Beginner
      • Nadia
      • Computer: Specs
      • Experience: Experienced
      • OS: Windows 7
      Re: Frame help
      « 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
      Great learders know they don't know everything and that is OK to say they have no idea. Doing that they will allow them to not knowing is not a problem, it leaves you to be open minded to learn from others It is OK to ask for detail and learn from those that as we are are all new at something and have our skill set.

      nymph4

        Topic Starter


        Specialist

        Re: Frame help
        « Reply #7 on: January 06, 2012, 04:22:47 PM »
        Thanks for help

        BC_Programmer


          Mastermind
        • Typing is no substitute for thinking.
        • Thanked: 1140
          • Yes
          • Yes
          • BC-Programming.com
        • Certifications: List
        • Computer: Specs
        • Experience: Beginner
        • OS: Windows 11
        Re: Frame help
        « 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.
        I was trying to dereference Null Pointers before it was cool.

        Veltas



          Intermediate

          Thanked: 7
          • Yes
        • Certifications: List
        • Computer: Specs
        • Experience: Beginner
        • OS: Linux variant
        Re: Frame help
        « 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.

        kpac

        • Web moderator
        • Moderator


        • Hacker

        • kpac®
        • Thanked: 184
          • Yes
          • Yes
          • Yes
        • Certifications: List
        • Computer: Specs
        • Experience: Expert
        • OS: Windows 7
        Re: Frame help
        « 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.

        Veltas



          Intermediate

          Thanked: 7
          • Yes
        • Certifications: List
        • Computer: Specs
        • Experience: Beginner
        • OS: Linux variant
        Re: Frame help
        « 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!

        kpac

        • Web moderator
        • Moderator


        • Hacker

        • kpac®
        • Thanked: 184
          • Yes
          • Yes
          • Yes
        • Certifications: List
        • Computer: Specs
        • Experience: Expert
        • OS: Windows 7
        Re: Frame help
        « 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.

        Veltas



          Intermediate

          Thanked: 7
          • Yes
        • Certifications: List
        • Computer: Specs
        • Experience: Beginner
        • OS: Linux variant
        Re: Frame help
        « 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.

        Raptor

        • Guest
        Re: Frame help
        « 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.