Log in

View Full Version : How do I display a webpage on my site?



crazytyler34
04-25-2006, 05:21 AM
I created a forum with yabbers.com and I would like to display that forum in my webpage. I do not want to have a link in my webpage to it, I would like to display it. My webpage is web.umr.edu/~ctnn87/forums.html and I would like to have http://www.yabbers.com/phpbb/ctnn87.html inside my webpage. Please help.

djr33
04-25-2006, 07:56 AM
Well... what you're talking about is frames. They're *generally* a bad idea, but, in this case, might be a good plan.

There are different kinds of frames: FRAMES and IFRAMES.

Frames are compatible with almost ALL browsers, including the really old stupid ones. Great for compatibility.
However, they have some tech issues... just kinda messy.
And, they aren't very controllable.

You basically need to do a <frameset> command that will say "there are two frames on this page", but I'm not familiar with that... google it, and look for the specific setup you want.
(frames are html pages displayed on the same page... think of frame as in a windowframe... holding a view to another site)


A less compatible method is using iframes. They are easier, but aren't as compatible with old browsers. I've heard, generally, that if a browser has javascript, it has iframes... so... they're pretty much ok.
Here's you you'd do that:

In your html, you'd have something like:

<html>
<body>
This is my page.<br>
Look below! It's a frame with my forum in it!<br>
Right here:
<iframe src="http...yoururl.htm" width=PIXELS/% height=PIXELS/%></iframe>
This is after my iframe.<br>
Thanks for viewing.<br>
</body>
</html>

Note: even though it's much like an image tag in simplicity, the iframe tag DOES need a closetag. (</iframe).
Also, I have yet to figure out what, if anything, goes betwee the <iframe> and </iframe> tags... doesn't make much sense. But... whatever, it DOES work :)

Twey
04-25-2006, 09:44 AM
Also, I have yet to figure out what, if anything, goes betwee the <iframe> and </iframe> tags... doesn't make much sense.Some HTML to display in the case than the browser doesn't support iframes, of course.

crazytyler34
04-25-2006, 04:31 PM
The <iframe> thing works until someone tries to login or go into a forum. At that point it takes them to that page instead of staying at my site with the frame. Is there a way to fix this?

mwinter
04-25-2006, 04:40 PM
Frames are compatible with almost ALL browsers, including the really old stupid ones.However, they can be disabled in almost all browsers, too.


The <iframe> thing works until someone tries to login or go into a forum. At that point it takes them to that page instead of staying at my site with the frame. Is there a way to fix this?I can't reproduce the problem, so I couldn't say.

Mike

crazytyler34
04-25-2006, 04:52 PM
What im saying is that when i click on anything inside my iframe it dosent open that in my iframe it just takes me to the page. Hence my header and my sidebar are no longer there and the user can not get back to my webpage easily.

mwinter
04-25-2006, 05:02 PM
What im saying is [...]I know what you're describing, but I don't see that behaviour in MSIE, Opera, or Firefox.

Mike

crazytyler34
04-25-2006, 05:08 PM
Hmm...it has seemed to fix itself...it was doing it earlier, however now it isnt doing it.
Thanks for your help guys.

djr33
04-25-2006, 07:23 PM
One thing is that if the pages have a particular thing about their link, then that will behave oddly. Like if there was a "open in main frame" link on the page... it would replace yours.
Not sure on specifics, but that's a guess.