Problem with nested frames

Discussion in 'HTML' started by Hans, May 19, 2006.

  1. Hans

    Hans Guest

    Hi all,

    Thanks for taking the time to read this. Please you look at the html
    code below. Somehow I have lost track of what this is doing.

    </head>
    <body>

    <frameset rows="60%, *" frameborder="no" framespacing="0" border="0" >
    <frameset cols="60%, *" frameborder="no" framespacing="0"
    border="0" >

    <frame>
    <table width="80%" align="left" valign="top"
    border="0" cellspacing="3" cellpadding="0">
    <tr>
    <td><a href="index_a.htm"
    target="mainframe"><img src="./w_a.jpg" border="0"> </a></td>
    <td><a href="index_a.htm" target="mainframe"><img
    src="./w_b.jpg" border="0"> </a></td>
    <td><a href="index_a.htm" target="mainframe"><img
    src="./w_c.jpg" border="0"> </a></td>
    </tr>
    <tr>
    <td><a href="index_a.htm"
    target="mainframe"><img src="./w_d.jpg" border="0"> </a></td>
    <td><a href="index_a.htm" target="mainframe"><img
    src="./w_e.jpg" border="0"> </a></td>
    <td><a href="index_a.htm" target="mainframe"><img
    src="./w_f.jpg" border="0"> </a></td>
    </tr>
    <tr>
    <td><a href="index_a.htm"
    target="mainframe"><img src="./w_g.jpg" border="0"> </a></td>
    <td><a href="index_a.htm" target="mainframe"><img
    src="./w_h.jpg" border="0"> </a></td>
    <td><a href="index_a.htm" target="mainframe"><img
    src="./w_i.jpg" border="0"> </a></td>
    </tr>
    </table>
    </frame>

    <frame marginwidth="0" marginheight="0" frameborder="0">
    <a href="index_a.htm" target="mainframe"><img
    src="./w_pfr.jpg" border="0"></a>
    </frame>

    </frameset>

    <frame marginwidth="0" marginheight="0" frameborder="0">
    <a href="index_a.htm" target="mainframe"><img
    src="./w_pfu.jpg" border="0"></a>
    </frame>

    </frameset>

    </body>
    </html>

    The intention is to have 3 areas:
    1. a square area 3x3 that holds 9 little images (w_a - w_i)
    2. to the right of that square area a "right arrow" (w_pfr)
    3. below the square area a "down arrow" (w_pfu")

    What it does is, it puts the arrows (w_pfr and w_pfu) into the same
    column to the right of the square area. I had it all working but
    somehow I messed it up again.

    If I take out the 3rd row of the little squares (w_g - w_i) it does it
    right!

    This code actually runs inside a frame of another page. But re-sizing
    the frames of the "parent" frameset makes no difference.

    I would very much appreciate help on this.

    Thanks,
    Hans
     
    Hans, May 19, 2006
    #1
    1. Advertising

  2. Hans <> scripsit:

    > Hi all,
    >
    > Thanks for taking the time to read this.


    Now you already used your quota of my time. Well, almost.

    > Please you look at the html
    > code below. Somehow I have lost track of what this is doing.


    Oh well, now you consumed it all. I still don't know what you problem was,
    but I really don't care. There wasn't even any URL so that I could perhaps
    have _seen_ the problem that you didn't want to _explain_ verbally. Thanks
    for playing.

    The morale is: get to the point, if you have one.

    Have a nice day.

    P.S. The _best_ answer to your question, to the extent that we can deduce
    from the Subject line, is: Don't use frames. If you really must use them, at
    least don't use nested frames.
     
    Jukka K. Korpela, May 19, 2006
    #2
    1. Advertising

  3. Hans

    Hans Guest

    Thanks for your warm response anyway.

    Hans
     
    Hans, May 19, 2006
    #3
  4. Hans

    Martin Jay Guest

    In message <>, Hans
    <> writes

    >Thanks for taking the time to read this. Please you look at the html
    >code below. Somehow I have lost track of what this is doing.


    Is it possible to see this in action online?

    I'm having a bit of a problem visualizing frames within frames, and a
    table thrown in. :)
    --
    Martin Jay
     
    Martin Jay, May 19, 2006
    #4
  5. Hans

    Hans Guest

    Hi Martin,

    Thanks for your kind reply.

    I do agree, it's a bit difficult. Unfortunately I am developing this on
    my own PC, so no web page available to show over the internet.

    Maybe this helps a little bit:

    +---------------------+
    | a | b | c | |
    +-----+-----+----+ w |
    | d | e | f | p |
    +-----+-----+----+ f |
    | g | h | i | r |
    +-----+-----+----+----|
    | wpfu |
    +---------------------+

    It looked okay in the preview but I'm sure it messed it up again.

    The picture describes the frameset which has 2 rows, the first of which
    is a frameset again with 2 columns, the left one of which is a table
    with three rows each having 3 columns with an image. To the right of
    the table, in the second column of the second frameset, there should be
    an image of a right-arrow (wpfr) which spans across the height of the
    table i.e. the rightmost table column. The second row of the top
    frameset should have an image of a down-arrow that spans across the
    last row of the table (wpfu).

    Basically it symbolizes a cube with an arrow to the right and one down.

    I have tried to strip off the html code anything not necessary

    <html>
    <body leftmargin="0">
    <frameset rows="70%, *" > frameset with 2 rows
    <frameset cols="75%, *" > first row ios a frameset with 2 columns
    <frame> first frame contains a table with 3 rows, each having 3
    images
    <table>
    <tr>
    <td><img src="./w_a.jpg"> </td>
    <td><img src="./w_a.jpg"> </td>
    <td><img src="./w_a.jpg"> </td>
    </tr>
    <tr>
    <td><img src="./w_a.jpg"> </td>
    <td><img src="./w_a.jpg"> </td>
    <td><img src="./w_a.jpg"> </td>
    </tr>
    <tr>
    <td><img src="./w_a.jpg"> </td>
    <td><img src="./w_a.jpg"> </td>
    <td><img src="./w_a.jpg"> </td>
    </tr>
    </table>
    </frame>
    <frame> second frame should contain an image of a right-arrow
    <table>
    <tr>
    <td><img src="./w_pfr.jpg" border="0"></td>
    </tr>
    </table>
    </frame>
    </frameset> end of frameset with 2 columns
    <frame> frame for second row in top frameset
    <table> this frame should contain an image with a down-arrow
    <tr>
    <td><img src="./w_pfu.jpg" border="0"></td>
    </tr>
    </table>
    </frame>
    </frameset>
    </body>
    </html>

    Maybe this helps. If not...tough luck! :)

    Thanks anyway for trying!

    Hans
     
    Hans, May 19, 2006
    #5
  6. Hans

    Steve Pugh Guest

    Hans wrote:

    > <frameset rows="60%, *" frameborder="no" framespacing="0" border="0" >
    > <frameset cols="60%, *" frameborder="no" framespacing="0"
    > border="0" >
    >
    > <frame>
    > <table width="80%" align="left" valign="top"
    > border="0" cellspacing="3" cellpadding="0">


    What's this doing here? A quick look at the spec:
    http://www.w3.org/TR/html401/present/frames.html#edef-FRAME will show
    you that frame is defined as an EMPTY element. It can not have any
    content. You should instead link to another HTML file via the SRC
    attribute.

    Please, put your HTML online somewhere so we can see it.

    > The intention is to have 3 areas:
    > 1. a square area 3x3 that holds 9 little images (w_a - w_i)
    > 2. to the right of that square area a "right arrow" (w_pfr)
    > 3. below the square area a "down arrow" (w_pfu")


    Are these squares supposed to be frames? Or table cells? You've got an
    unholy mixture of the two shoved together in a way that isn't allowed
    in HTML.

    Steve
     
    Steve Pugh, May 19, 2006
    #6
  7. Hans

    Hans Guest

    Thanks,

    I'll try to re-write it.

    Hans
     
    Hans, May 19, 2006
    #7
  8. Hans wrote:

    > Thanks,
    >
    > I'll try to re-write it.



    Do that and at least put it online so other's (which you are asking for
    assistance) have a chance of actually seeing what you intend.

    Bet dollar to donuts that what you are attempting not only could be done
    without frames but would also be much better as the result.


    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
     
    Jonathan N. Little, May 19, 2006
    #8
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Powerslave2112

    From Frames to no frames?

    Powerslave2112, Jan 20, 2004, in forum: HTML
    Replies:
    2
    Views:
    635
    brucie
    Jan 20, 2004
  2. Philip
    Replies:
    3
    Views:
    1,016
    Karl Groves
    Jun 28, 2004
  3. Ale

    Frames or not Frames...

    Ale, Aug 3, 2005, in forum: HTML
    Replies:
    17
    Views:
    1,003
    Adrienne
    Aug 5, 2005
  4. Replies:
    1
    Views:
    1,035
    dorayme
    Feb 10, 2006
  5. Replies:
    0
    Views:
    1,220
Loading...

Share This Page