+ Reply to Thread
Results 1 to 8 of 8

Thread: HTML Frameset

  1. #1
    richm8026 is offline x10 Sophmore richm8026 is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    138

    HTML Frameset

    Hello fellow html editors, I am trying to work on Frames here

    I have an understanding of:

    <frameset cols="25%", 75%">

    <frame src="LeftSide.html">
    <frame src="RightSide.html">

    </frameset>

    I used for Frames, but I typed it in how the tutorials say, but for some reason it's still not working and it's breaking my index.html file.. I have the above in the index.html file, any ideas why it's not working properly??


  2. #2
    KSclans is offline x10 Sophmore KSclans is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    198

    Re: HTML Frameset

    Because you have this line wrong

    <frameset cols="25%", 75%">

    You closed the quote at the end of 25% so the 75% is not inside the quotes you need "25%, 75%" so the 75% inside it too, and you have 3 quotes also only 2 delete the extra one in middle.......


    so <frameset cols="25%, 75%">

  3. #3
    richm8026 is offline x10 Sophmore richm8026 is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    138

    Re: HTML Frameset

    Ooooooooooooh, thanks thanks thanks, that helped...
    Edit:
    Alright, I have the two frames working, how do I make so when a Link is clicked it shows it on the right side???

    Is that using <iframe src="filename.html"></iframe> ??
    Last edited by richm8026; 11-07-2008 at 11:25 PM. Reason: Automerged Doublepost


  4. #4
    KSclans is offline x10 Sophmore KSclans is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    198

    Re: HTML Frameset

    if you want the link to open in one section of frame you need to NAME the frame
    for index you need

    <frameset cols="25%,75%">
    <frame src="left.html" name="links">
    <frame src="right.html" name="main">
    </frameset>

    left.html will show the links and right is the be the homepage

    in the left.html use links to open html in the target section

    <a href="http://forums.x10hosting.com/graphics-webdesign/rightpage2.html" target="main">

    notice I put <frame src="right.html" name="main">
    so the name is main and you target or to open html in main

  5. #5
    richm8026 is offline x10 Sophmore richm8026 is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    138

    Re: HTML Frameset

    Thanks, that makes sense, I am going to use main.html as the right side for the results.. That was quite helpful, I almost thought I had it figured out, now I know I for a fact I do... So, I only need just a leftside.html and index.html file then?? I was thinking I need at least 3, leftside.html, main.html, and index.html..
    Last edited by richm8026; 11-08-2008 at 09:30 PM.


  6. #6
    citco is offline x10Hosting Member citco is an unknown quantity at this point
    Join Date
    Nov 2008
    Posts
    4

    Re: HTML Frameset

    Quote Originally Posted by richm8026 View Post
    Thanks, that makes sense, I am going to use main.html as the right side for the results.. That was quite helpful, I almost thought I had it figured out, now I know I for a fact I do... So, I only need just a leftside.html and index.html file then?? I was thinking I need at least 3, leftside.html, main.html, and index.html..


    To cut the whole story short. Here is a simple Frameset.

    1. create the html file that contains the frames. sample code below.

    <frameset cols="80,*" frameborder="no" border="0" framespacing="0">
    <frame src="menus.html" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
    <frame src="body.html" name="mainFrame" id="mainFrame" title="mainFrame" />
    </frameset>


    2. create the two html pages namely; menus.html to be located on the left side and body.html to be on the right side.

    notice we use zero bordering and spacing to make the frames blend 'uninterruptedly' or smoothly. to see the frames clearly, you could set their bgcolor in their body tag to contrasting colors.

    3. since you want to click in the left and have the page open up in the right frame, for every link in your menus.html, you have to set a target. sample code below.

    <a href="bla.html" target="_mainFrame">bla</a>

    thus, for a link viewed as 'bla' in the menus.html located in the leftFrame, a page will be opened in the mainFrame.

    hope it helped, enjoy!

  7. #7
    vol7ron's Avatar
    vol7ron is offline x10 Lieutenant vol7ron is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    DC
    Posts
    434

    Re: HTML Frameset

    What the heck are you guys talking about!?!?

    FRAMES SHOULD NO LONGER BE USED

    If you're even thinking about using a FRAME, look up AJAX calls. Advice should not be given to something that is almost officially deprecated
    If you find my post useful please add to my reputation by clicking the +Rep button
    You may also use the Donate link to donate credits - this is appreciated too Thanks to those whom have donated so far!


  8. #8
    scottnj's Avatar
    scottnj is offline x10 Sophmore scottnj is an unknown quantity at this point
    Join Date
    Feb 2008
    Location
    Florida
    Posts
    123

    Re: HTML Frameset

    Quote Originally Posted by vol7ron View Post
    What the heck are you guys talking about!?!?

    FRAMES SHOULD NO LONGER BE USED

    If you're even thinking about using a FRAME, look up AJAX calls. Advice should not be given to something that is almost officially deprecated
    He has a point, frames have almost completely been phased out.

    I haven't used framesets in years. However I do occasionally use IFrames.

    See the HTML Code Tutorials article on "Should you use Frames?"
    Last edited by scottnj; 11-16-2008 at 07:33 PM.
    ~Scottnj

    If it is in my hands, and it turns on, it will become a server.

+ Reply to Thread

Similar Threads

  1. A HTML + CSS Basic Tutorial
    By Zenax in forum Tutorials
    Replies: 14
    Last Post: 09-02-2011, 01:42 PM
  2. Hybrid's HTML Lessons
    By Hybrid in forum Tutorials
    Replies: 18
    Last Post: 11-28-2009, 02:12 PM
  3. [IPB] Contiguous Board Index
    By phenetic in forum Tutorials
    Replies: 5
    Last Post: 09-18-2005, 10:31 AM
  4. What is XML!
    By wizeman in forum Tutorials
    Replies: 6
    Last Post: 08-27-2005, 12:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers