Click to See Complete Forum and Search --> : Frame Help
trm96
06-29-2003, 01:11 AM
What I was is when a user clicks a link to an external website I want it to open a new page with a frame on top. Like what google does when you do an immage search, when you click an image it opens a new window with a frame on top.
Thanks in advance.
PeOfEo
06-29-2003, 02:58 AM
Just make a framset and set the link to open your framset and the bottum page to be the page you want.
trm96
06-29-2003, 01:30 PM
Im kinda a noob so could you give me the script i need to use?
<frameset rows="80,*">
<frame src="top.htm" name="top" scrolling="no">
<frame src="main.htm" name="main">
</frameset>
<noframes>
<body>
You're browser doesn't support frames. Click <a href="noframes.htm">here</a> to enter our no frames page.
</body>
</noframes>
PeOfEo
06-29-2003, 02:43 PM
Thats pretty much your whole page so you are going to want to save that as an html doccument. Here is your whole page
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Your title</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="80,*" frameborder="NO" border="0" framespacing="0">
<frame src="frame url" name="topFrame" scrolling="NO" noresize >
<frame src="frame url2" name="mainFrame">
</frameset>
<noframes><body>
</body></noframes>
</html>
Charles
06-29-2003, 05:07 PM
From the HTML 4.01 Specification
A frameset document has a HEAD, and a FRAMESET in place of the BODY.
emphasis added
http://www.w3.org/TR/html4/present/frames.html#h-16.2.1
Thanks for pointing that our, Charles. I wasn't aware of that... One of these days, I'm going to just have to decide to read the specs and print them off...
PeOfEo
06-29-2003, 05:30 PM
I was not aware of that either, so just drop the body tags and pyro's code and my code will work fine
trm96
07-01-2003, 01:45 PM
So I would have to make a page like that for every link i wanted to have a frame on? :(
PeOfEo
07-01-2003, 06:49 PM
That is kinda the idea and that is a reason a lot of people make frames you know, to just have a little section be its own html duccument but keep their navigation separate so whenever they add a new link or something of that description they don't have to update every page. It is also a good way to keep your code nimble for faster loading times for 56k users and it will help you be more organised.
spufi
07-01-2003, 11:08 PM
Since trm96 gave the example of clicking on a image in a image search on Google, I think everybody skipped that part and tried to just show trm96 a page with a frame. Not to say that can't lead to the answer. What trm96 needs to do is find out what server side language trm96 is allowed to use. After that we can go from there. A server side language is going to be needed so the information can be passed from the page it was click on to the newly created frame page that will now display it.
trm96
07-02-2003, 12:01 AM
Originally posted by spufi
Since trm96 gave the example of clicking on a image in a image search on Google, I think everybody skipped that part and tried to just show trm96 a page with a frame. Not to say that can't lead to the answer. What trm96 needs to do is find out what server side language trm96 is allowed to use. After that we can go from there. A server side language is going to be needed so the information can be passed from the page it was click on to the newly created frame page that will now display it.
Oh really :confused: Well my host is not the greatest host in the world (but im stuck with it untill next year) i am going to contact my host to ask what server side languages (if any) i can use.
PeOfEo
07-02-2003, 01:19 AM
Well If you know what kind of server they run weather it be windows nt, windows 2k3, apache, linux or whatever you can assume. I know hosts get really annoyed when people ask them that and usually they like to put it all over their site so people dont ask them what they support.
trm96
07-02-2003, 07:40 PM
Originally posted by PeOfEo
Well If you know what kind of server they run weather it be windows nt, windows 2k3, apache, linux or whatever you can assume. I know hosts get really annoyed when people ask them that and usually they like to put it all over their site so people dont ask them what they support.
So then what should I do? I know I don't have access to PHP or My SQL...
PeOfEo
07-03-2003, 02:37 AM
Well, your host might not support anything but I was really asking the operating system of the server. Umm Look on their site for a f.a.q. sheet or something if they support it they probably say so in there and If they do not then you send them an email.
trm96
07-03-2003, 05:47 PM
Ok well I looked on the FAQs page on but no mention of the server's OS I shall send them an e-mail...
QLevelClearance
07-04-2003, 01:47 AM
Originally posted by trm96
What I was is when a user clicks a link to an external website I want it to open a new page with a frame on top. Like what google does when you do an immage search, when you click an image it opens a new window with a frame on top.
Thanks in advance.
Ok... If I understand you correctly, you merely want a link on an already existing frame to pop up a NEW page, in a NEW window - a new page in which yet another two frames would appear?
Here's how you'd fix the link on your initial page:
<a href="http://www.yoursite.com/yournewpage.htm" target="new">Your framed page, to appear in a new window</a>
TARGET="New" will open up a new window - You then design the page (with its respective frames) you want to see pop up in that new window as follows, treating what follows as a new (and separate) document;
<html>
<head>
<title>Yournewpage.htm</title>
</head>
<frameset rows="150,*" frameborder="NO" border="0" framespacing="0">
<frame src="http://www.yoursite.com/top_frame_of_yournewpage.htm" name="top" scrolling="NO" noresize >
<frame src="http://www.yoursite.com/main_frame_of_yournewpage.htm" name="main">
</frameset>
<noframes><body>
Here's where you'd either provide a link to a non-framed page or tell people that their browser did not support frames and that you did not have a non-framed version of your page available.
</body></noframes>
</html>
Hope this helps
Regards,
Q
trm96
07-04-2003, 03:05 AM
I think the best way to describe what I want to do is to give you guys an example...
On this (http://www.gamewinners.com/gameshark.php?game=blp2grandtheftautovicecity.htm) page there are 2 links one that says "Official codes from InterAct" and the other "Official codes from Datel.". When you click on either link you are presented with this (http://vgstrategies.about.com/gi/dynamic/offsite.htm?site=http://www.gameshark.com/playstation2/objects/492837%5F106.html) page with a new website on the bottom frame and a page form the website you were just at in the top. This is what I want to do. I hope this cleared things up, I just can't describe things too well. :cool:
QLevelClearance
07-04-2003, 03:20 AM
Originally posted by trm96
I think the best way to describe what I want to do is to give you guys an example...
On this (http://www.gamewinners.com/gameshark.php?game=blp2grandtheftautovicecity.htm) page there are 2 links one that says "Official codes from InterAct" and the other "Official codes from Datel.". When you click on either link you are presented with this (http://vgstrategies.about.com/gi/dynamic/offsite.htm?site=http://www.gameshark.com/playstation2/objects/492837%5F106.html) page with a new website on the bottom frame and a page form the website you were just at in the top. This is what I want to do. I hope this cleared things up, I just can't describe things too well. :cool:
Ok... So how about...
<html>
<head>
<title>Yournewpage.htm</title>
</head>
<frameset rows="150,*" frameborder="NO" border="0" framespacing="0">
<frame src="http://www.YOURsite.com/top_frame_of_YOURnewpage.htm" name="top" scrolling="NO" noresize >
<frame src="http://www.THEIRsite.com/THEIRpage.htm" name="main">
</frameset>
<noframes><body>
Here's where you'd either provide a link to a non-framed page or tell people that their browser did not support frames and that you did not have a non-framed version of your page available.
</body></noframes>
</html>
Lemme know... : o )
Q
trm96
07-04-2003, 03:45 PM
Sounds good but I would have to make a new page ofr every new link.:( But if thats what I have to do I will. :) Thank you guys for all your help! You guys have been great! :D
trm96
07-20-2005, 03:36 PM
Sounds good but I would have to make a new page ofr every new link.:( But if thats what I have to do I will. :) Thank you guys for all your help! You guys have been great! :D
Thank you for the help! I finly got the time to do it. Check it out here (http://trm96.com/files/lh.htm)