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

Author Topic: Contents of HTML Frames  (Read 6512 times)

0 Members and 1 Guest are viewing this topic.

Aegis

    Topic Starter


    Expert

    Thanked: 67
    • Yes
    • Yes
    • Brian's Mess Of A Web Page
  • Experience: Experienced
  • OS: Windows 10
Contents of HTML Frames
« on: June 08, 2008, 02:51:42 AM »
I understand the very basics of creating an HTML pages with frames.  I can't figure out how to load content into each frame.

<frameset cols"25%, 25%, 25%, 25%">
<FRAME src="contents_of_2004frame1.html">
</frameset>

OK, I mean to render four columns down the page.  How do I get content into each column?

I'm looking at the w3.org site, and the problem is I wish the examples were better set up to show what adding content to each frame yields, and from where they get the content.

Thanks!


"For you, a thousand times over." - "The Kite Runner"

squall_01



    Prodigy

    Thanked: 80
    Re: Contents of HTML Frames
    « Reply #1 on: June 08, 2008, 03:53:28 AM »
    If you want they need to be five pages the content of all four, then the frame its self point to the pages.  In other words the content pages are made the same as any other page, just that when you put the framset in to have it load it will cause it to break into four seperate parts in the window. 
    Windows 7 RC Tester.  Working on it.  Your monitor says etchasketch on the side!

    If I fall who is there to pick me up now.  I stand alone but I stand as the gaurdian for whom I wish to protect.  The sound of my blade utters my name as you fall.  For I shall not move.  For those that forsake the very people are wosres

    Aegis

      Topic Starter


      Expert

      Thanked: 67
      • Yes
      • Yes
      • Brian's Mess Of A Web Page
    • Experience: Experienced
    • OS: Windows 10
    Re: Contents of HTML Frames
    « Reply #2 on: June 08, 2008, 01:02:55 PM »
    I can't seem to find anything to tell me exactly how to do the pointing, or where the "targets" should be located.  I mean, in my poor example, I'm trying to get my first frame to read the contents of a file I have in the same directory as all the other html files.

    I'm still reading.


    "For you, a thousand times over." - "The Kite Runner"

    Astoria



      Intermediate

      Re: Contents of HTML Frames
      « Reply #3 on: June 08, 2008, 04:36:39 PM »
      To point links to a certain frame, you need to give the frames names.

      Example:

      Code: [Select]
      <frameset cols"50%, 50%">
      <FRAME src="menu.html" name="menu">
      <FRAME src="main.html" name="main">
      </frameset>

      Now, if you have a link in your menu and want it to open in the main frame you do:

      Code: [Select]
      <a href="link.html" target="main">Link</a>



      Aegis

        Topic Starter


        Expert

        Thanked: 67
        • Yes
        • Yes
        • Brian's Mess Of A Web Page
      • Experience: Experienced
      • OS: Windows 10
      Re: Contents of HTML Frames
      « Reply #4 on: June 08, 2008, 05:27:45 PM »
      Thank you, Astoria.  That should help.

      I know frames are not so favored.  I'm just "faking" a page upgrade for a friend until I can get a better handle on CSS and other tools.


      "For you, a thousand times over." - "The Kite Runner"

      Aegis

        Topic Starter


        Expert

        Thanked: 67
        • Yes
        • Yes
        • Brian's Mess Of A Web Page
      • Experience: Experienced
      • OS: Windows 10
      Re: Contents of HTML Frames
      « Reply #5 on: June 09, 2008, 09:39:15 PM »
      Quote
      <html>
      <head>
      <title>2004 Poster Session (Orlando, FL)</title>
      </head>
      <frameset cols=25%, 25%, 25%, 25%>
      <frame src="2004frame1.htm">
      <frame src="2004frame2.htm">
      <frame src="2004frame3.htm">
      <frame src="2004frame4.htm">
      </frameset>
      </html>

      All right, I've created this simple frameset to have four columnar frames.  Each .htm document is uploaded to the server, but when I look at the page, it is completely blank.  Shouldn't there be four columns of data?


      "For you, a thousand times over." - "The Kite Runner"

      Astoria



        Intermediate

        Re: Contents of HTML Frames
        « Reply #6 on: June 09, 2008, 09:51:12 PM »
        try

        Code: [Select]
        <frameset cols="25%, 25%, 25%, 25%">

        And what is the name of the file?
        It should be index.htm



        Aegis

          Topic Starter


          Expert

          Thanked: 67
          • Yes
          • Yes
          • Brian's Mess Of A Web Page
        • Experience: Experienced
        • OS: Windows 10
        Re: Contents of HTML Frames
        « Reply #7 on: June 09, 2008, 09:58:05 PM »
        No, foolish me, I'm trying to load those four different files -- one into each frame.
        So the command will only work with an index.htm file?  If that's the case, frames aren't going to do me any good.

        Forgive my frustrations.  I truly appreciate your help.

        I have doc files with words in four columns.  If I could just cut and paste, that would be great, but I need to figure out how to html format the columns.

        I am reading what I can find on the web now.  Any input is appreciated -- I just want you to know I'm not sitting back waiting for someone to fix it for me.


        "For you, a thousand times over." - "The Kite Runner"

        Astoria



          Intermediate

          Re: Contents of HTML Frames
          « Reply #8 on: June 09, 2008, 10:13:25 PM »
          Well, from that code it looks like every htm file should load into each column separately.

          And no, the name does'nt have to have the name index.htm.

          But here's why i said that:

          let's say you're website's adress is: http://www.mywebsite.com

          Now the browser will automatically look for a file called index.* or default.*, with * being html, htm, php

          So if you named the file with the frameset "framesetblahblahblah.html", than you have to type in your browser:

          http://www.mywebsite.com/framesetblahblahblah.html

          naming a main file index.htm is easier.

          I hope I explained that so you understand.

          Btw, the HTM files that go into each frame, do they all start with:
          <html><head></head> etc etc?

          They all should be complete htm files.

          If I can give you a tip, why don't you just use a single page layout?
          You could just use a table with four columns





          Aegis

            Topic Starter


            Expert

            Thanked: 67
            • Yes
            • Yes
            • Brian's Mess Of A Web Page
          • Experience: Experienced
          • OS: Windows 10
          Re: Contents of HTML Frames
          « Reply #9 on: June 09, 2008, 10:19:27 PM »
          Quote
          If I can give you a tip, why don't you just use a single page layout?
          You could just use a table with four columns

          Thank you!  May the Universe bless you!  Frames are killin' me -- I think I shall do better with tables.

          I understood your explanation.

          I just thought I was gonna be slick, that's all...   ::)


          "For you, a thousand times over." - "The Kite Runner"

          squall_01



            Prodigy

            Thanked: 80
            Re: Contents of HTML Frames
            « Reply #10 on: June 10, 2008, 03:24:01 AM »
            Here what I did to learn it, sorry it took me so long to get back an every thing.  Your probably not point exatly to the file, however I found dreamweaver exteremly helpful when doing stuff like this.
            Windows 7 RC Tester.  Working on it.  Your monitor says etchasketch on the side!

            If I fall who is there to pick me up now.  I stand alone but I stand as the gaurdian for whom I wish to protect.  The sound of my blade utters my name as you fall.  For I shall not move.  For those that forsake the very people are wosres