SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Frames

  1. #1
    SitePoint Addict
    Join Date
    May 2005
    Posts
    392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Frames

    Hey!
    Here is the problem that I have been struggling with for some time and stil have not figure it out. Is someone can help me out, it would be terriffic!

    I have an html page like this:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Welcome.</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

    </head>

    <frameset frameBorder="0" rows="123,*">
    <frame src="header.xml" name="top_frame" marginwidth="15">

    <frameset cols="21%,79%">
    <frame SRC="panel.xml" name="left_frame" scrolling="no">
    <frame SRC="dashboard.xml" name="right_frame">
    </frameset>

    </frameset><noframes></noframes>
    </html>


    header.xml is interpreted by header.xsl. Header.xsl has 3 frames:

    <frameset frameBorder="0" rows="123,*">
    <frameset cols="15%,70%,15%">
    <frame noresize SRC="http://www.altavista.com" name="left_frame" scrolling="no"></frame>
    <frame SRC="http://www.yahoo.com" name="right_frame" scrolling="no"></frame>
    <frame SRC="http://www.google.com" name="right_frame" scrolling="no"></frame>
    </frameset>
    </frameset>


    When I load my html page I can't see the top frame? Why? Thanks!

  2. #2
    SitePoint Zealot SiteDev's Avatar
    Join Date
    Oct 2004
    Location
    Nevada
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm think it's because 15%+70%+15% != 100%. So, you might want to make them 33%? It's been so long since I've seen frame code, so I'm not really sure.

  3. #3
    SitePoint Evangelist Maujor's Avatar
    Join Date
    Mar 2005
    Location
    Rio de Janeiro - Brazil - South America
    Posts
    409
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello,
    What kind of frames structure are you trying?
    Please confirm:
    Top frame whith 3 columns(15%-70%-15%) and below 02 columns (29%-71%)
    Is this the layout?
    For now i'd like say: You are using the wrong DOCTYPE.
    The following is the correct one.
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"
     "http://www.w3.org/TR/REC-html40/frameset.dtd">
    Mauricio Samy Silva
    http://www.maujor.com/

  4. #4
    SitePoint Member
    Join Date
    Jun 2005
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    [QUOTE=thisObject]Hey!
    Here is the problem that I have been struggling with for some time and stil have not figure it out. Is someone can help me out, it would be terriffic!

    QUOTE]

    Hi,
    I suggest you to visit following links. It will also solve your future problems with XML and XSL.
    http://www.w3schools.com/xml/default.asp
    http://www.w3schools.com/xsl/xsl_languages.asp
    Cheers,
    Pradeep-M6.Net
    Windows web hosting with ASP,.Net,PHP,MySQL Support
    We make IT work for people!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •