|
-
Nov 20th, 2004, 06:39 AM
#1
Thread Starter
Member
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 ~~$ 
-
Nov 20th, 2004, 08:36 AM
#2
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.
-
Nov 20th, 2004, 09:26 AM
#3
Frenzied Member
printing from a frameset, whoa! Don't even get me started.
Have I helped you? Please Rate my posts. 
-
Nov 22nd, 2004, 10:03 AM
#4
Thread Starter
Member
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 ~~$ 
-
Nov 22nd, 2004, 12:59 PM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|