Click to See Complete Forum and Search --> : Importing another site into my page
Barnie
02-27-2007, 05:02 PM
Hi all. I hope this belong in the php section. I orginally started it in HTML but I think it's more complicated than I originally thought.
Perhaps I"ll just post the link so everyone can see it from the start.
Thanks all
http://www.webdeveloper.com/forum/showthread.php?p=720738#post720738
grumpyoldtechs
02-27-2007, 06:00 PM
Right take screen shots of this as its a historic. I am actually going to promote the use of frames.
There are VERY FEW valid uses for frames and many would argue there are No valid uses for frames but on this occasion i can actually see a valid use for them.
If this is an external website not controlled by you and you want to give your users access to this site but keeping them within the confines of your website. i would suggest using iframes or even a frame at the top or bottom.
Technically using a frame would be better as it doesn't restrict the width of the other website (would cause horizontal scrolling).
use google images as an example. i find that to be the best valid use of frames i have ever seen.
(i don't really like the system your trying to implement tho if your website is good enough your user should open the new site in a tab or will click the back button)
just add a button to remove the frame (it will make your users happy)
Barnie
02-27-2007, 06:14 PM
Can I even use frames to make a frame appear in the form of a box in the middle of my page? Basically I want the rest of my page to stay intact. I don't know if I've ever seen a frame appear as a square in the middle that you can scroll while to the left, right, top and bottom of it are still my page.
Does this make sense?
P.S. I agree that if the site is good enough people will come back for the majority of Internet users out there I think they prefer to stay on the main page for something of this nature.
P.P.S. Screenshot taken :D
grumpyoldtechs
02-27-2007, 06:33 PM
<iframe>
<h1>alternate content</h1>
<p>for browsers which don't support iframes</p>
</iframe>
http://htmlhelp.com/reference/html40/special/iframe.html
its the most rational way of doing it.
using an include wouldn't work with it being an external file (or it would cause a lot of issues) and it wouldn't be in a box unless you used a div with a fixed size and overflow:auto;
Barnie
02-27-2007, 07:19 PM
Great.. Thanks for the help. Very easy once you pointed me to iframes.
Thanks man :)
Very much appreciated!