Click to See Complete Forum and Search --> : embedding a fram within a table


rincewind
05-28-2003, 06:25 PM
Hi,
Is it possible to embed a frame within a table of an asp page?
i.e. can you make a tables contents be a page from another site?
Thanks

pyro
05-28-2003, 06:31 PM
Sounds like you are looking for an iframe: http://www.w3.org/TR/REC-html40/present/frames.html#h-16.5

rincewind
05-28-2003, 06:58 PM
Hi,
I tried that using the following within the table
<IFRAME src="http://www.hoganstand.com/js/latest.html" width="125" height="800" scrolling="auto" frameborder="1">
</IFRAME>
But the table says page cannot be displayed but the link above works fine. Any ideas?
You can see the problem at
www.irishtrucker.com/testframe.asp
Thanks

rincewind
05-28-2003, 07:14 PM
Where abouts should I put that code?

pyro
05-28-2003, 09:11 PM
Doctypes go at the very top of the page. More info can be found at http://www.alistapart.com/stories/doctype/

pyro
05-28-2003, 09:15 PM
This would be a problem:

<IFRAME src="www.hoganstand.com/js/latest.html" width="125" height="800"
scrolling="auto" frameborder="1">
[Your user agent does not support frames or is currently configured
not to display frames. However, you may visit
<A href="foo.html">the related document.</A>]
</IFRAME>

Try:

<iframe src="http://www.hoganstand.com/js/latest.html" width="125" height="800"
scrolling="auto" frameborder="1">
[Your user agent does not support frames or is currently configured
not to display frames. However, you may visit
<A href="foo.html">the related document.</A>]
</iframe>

Also, the code between the <iframe> tags should be customized to fit your site...

rincewind
05-29-2003, 05:25 AM
Thanks guys, that worked a charm! Dave - that solved the javascript/server problem too, I used the iframe to view the code that works on the other server so it now 'looks' like it works on this page too.
Thanks again