Click to See Complete Forum and Search --> : Open link in the specific frame of another page
khalil
Nov 20th, 2004, 05:39 AM
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" .
CornedBee
Nov 20th, 2004, 07:36 AM
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.
Acidic
Nov 20th, 2004, 08:26 AM
printing from a frameset, whoa! Don't even get me started.
khalil
Nov 22nd, 2004, 09:03 AM
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.
CornedBee
Nov 22nd, 2004, 11:59 AM
Simplest, not-quite-working PHP example:
<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.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.