www.webdeveloper.com
Results 1 to 7 of 7

Thread: Link to a page in a frame set

  1. #1
    Join Date
    Jan 2008
    Posts
    4

    Link to a page in a frame set

    I would like to know how can I write a link to a specific page viewing the all frame set.
    The page is called "example.htm" and if the link is: "http://www.mysite.com/example.htm" I only see the page "example.htm" but I don't see the rest of the frameset and I want to see it all.
    How should I write a correct link to respond to my needs?
    Thanks.

  2. #2
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    You use the URL of the containing frameset, which is a separate page.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

  3. #3
    Join Date
    Jan 2008
    Posts
    4

    Still confused...

    Thank you for your reply "ray326". This is probably just another piece of cake for you. However I can't get it done. Can you be more specific? Can't you write down that URL for me? Or, where can I get more details? Thanks.

  4. #4
    Join Date
    Nov 2002
    Location
    XYZZY - UK
    Posts
    1,760
    Hmmm: http://www.xhtmlcoder.com/test.htm You have a frameset file and from there you name the pages you want in the frames. You then have to use targets.

    <FRAMESET cols="85%, 15%">
    <FRAME src="1.htm">
    <FRAME src="2.htm">
    <NOFRAMES>
    Oops. You can't see frames.
    </NOFRAMES>
    </FRAMESET>

    http://www.w3.org/TR/REC-html40/pres...es.html#h-16.1

  5. #5
    Join Date
    Jan 2008
    Posts
    4

    Sorry, that didn't help!

    I'm sorry but I probably didn't know how to express myself clearly.

    Let me try differently:
    I have a frameset with 2 frames (A and B). Frame A is a "MenuPage" and frame B is the target (the frame where pages selected in frame A, are shown).

    Now, if I call menuitem "Test" (for example) I will see the contents of the page "test.htm" in frame B. There's no question about that. So far so good!

    Now, if I send a URL to someone like this:
    http://www.myweb.com/index.htm (default page) he will see all the frame set.
    But if the URL is:
    http://www.mypage.com/test.htm he will see ONLY the page called "test.htm" and NOT all frame set: frame A and frame B (showing page test.htm).

    Please try to help me, ok? Thanks.

  6. #6
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    And that's the fundamental reason that frames should not be used. They break the functionality of the web.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

  7. #7
    Join Date
    Jan 2008
    Posts
    4
    Thank you for your suggestion, ray 326, but I like frames and I still want to solve my problem. I know there's a way to do it - I just don't remember how!

    Anyone else out there to help me? - I appreciate only positive answers. Thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles