Results 1 to 5 of 5

Thread: Open link in the specific frame of another page

  1. #1

    Thread Starter
    Member khalil's Avatar
    Join Date
    Apr 2004
    Posts
    49

    Question Open link in the specific frame of another page

    I want to open the link in a specific frame of another page .
    How can I do this.
    e.g
    I give a hyperlink to "ww.yahoo.com" in the an html page called "One" .I want when a user click on this link, another page "Two" opens that contains three frames A,B,C .The "www.yahoo.com" should open in the "B" frame of the page "Two" .
    Muhammad Khalil Raza

    $~~ Well do or don't do ~~$

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    You could, for example, write the frameset as a server script that takes as parameter the URL for the specific frame you want the page in.

    However, two big problems:
    1) Framesets are inaccessible, break bookmarks and generally have quite a few problems.
    2) It is considered extremely rude to load foreign pages in your own frameset. Many pages contain framebreakers to prevent just that.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    printing from a frameset, whoa! Don't even get me started.
    Have I helped you? Please Rate my posts.

  4. #4

    Thread Starter
    Member khalil's Avatar
    Join Date
    Apr 2004
    Posts
    49
    Thanks for replying buddy
    Would you like to explain your following words ...

    [QUOTE]Originally posted by CornedBee
    [B]You could, for example, write the frameset as a server script that takes as parameter the URL for the specific frame you want the page in.
    Muhammad Khalil Raza

    $~~ Well do or don't do ~~$

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Simplest, not-quite-working PHP example:
    Code:
    <html>
    <frameset rows="2">
    <frame src="head.html"/>
    <frameset cols="2">
    <frame src="nav.html"/>
    <frame src="<?php echo $_GET['page']; ?>"/>
    </frameset>
    </frameset>
    </html>
    If this flle is called fs.php, you can link to an URL like this:
    http://youhost/fs.php?page=content.html
    and content.html will be in the right frame.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

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



Click Here to Expand Forum to Full Width