Link to home
Start Free TrialLog in
Avatar of NHBFighter
NHBFighter

asked on

Loading a page into a table's td

Experts

When dealing with frames you can have the content of any site appear in one of the frames. Is there any equivalent functionality to do the same thing with tables? I basically want to wrap the contents of a web site in a table.

<table>
<tr><td>Insert webPage content here</td></tr>
</table>

Thanks
Dave
Avatar of mag1c1an
mag1c1an

Shouldnt be too much of a problem, just get the websites code and shove it between the <td>'s .

Unless I didnt get your question...
Been thinking of your question, if you meant like in frames you say src=blah.com and it comes into the frame...nope, you cant do that with a table, what you CAN do is you can use a programming language like PHP to grab the far of sites code and shove it into your <td> but then you will have a problem coz the images dont follow with the code...

Hope that helped.

Cheers,
Mag
ASKER CERTIFIED SOLUTION
Avatar of cLFlaVA
cLFlaVA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of NHBFighter

ASKER

how do IFrames work?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Here's an example!


inside.html
--------------------------------------------

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title> inside document </title>
</head>

<body bgcolor="blue">
<div style="color: #fff">
Here we are, in the inside page...
</div>
</body>
</html>




outside.html
---------------------------------------------
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title> outside document </title>
</head>

<body bgcolor="gray">
This is the outside page!<br>

<table border="1" width="400">
<tr>
<td>This cell is next to the cell with the IFRAME in it...</td>
<td>Here is the IFRAME:<br>
<iframe src="inside.html"></iframe>
</td>
</tr>
</table>
</body>
</html>


>>> i didnt mention that coz they only work in IE

Funny, works for me in NS 7.2.
Iframe is the webpage element that creates an inline frame that contains another document. Iframe functions as a document within a document, or like a floating FRAME. It just loads another html document within the <iframe> tags. Syntax <IFRAME>...</IFRAME>

Examples:
This example uses the IFRAME element and an HTML fragment to create a frame containing the page sample.htm.


Code:
<IFRAME ID=IFrame1 FRAMEBORDER=0 SCROLLING=NO SRC="sample.htm"></IFRAME>


Parameters of Iframe:

SRC=URI (URI of frame content)
NAME=CDATA (name of frame)
LONGDESC=URI (link to long description)
WIDTH=Length (frame width)
HEIGHT=Length (frame height)
ALIGN=[ top | middle | bottom | left | right ] (frame alignment)
FRAMEBORDER=[ 1 | 0 ] (frame border)
MARGINWIDTH=Pixels (margin width)
MARGINHEIGHT=Pixels (margin height)
SCROLLING=[ yes | no | auto ] (ability to scroll)
Hmmm, I dont have NS7.2, I still use my old browser of NN 4x

Cheers,
Mag
Thanks, that did the trick!