stmasi
05-23-2003, 12:32 PM
Remember me?
:D
How do you load an external HTML page into a table cell?
Thanx.
:D
How do you load an external HTML page into a table cell?
Thanx.
|
Click to See Complete Forum and Search --> : External HTML within a table cell stmasi 05-23-2003, 12:32 PM Remember me? :D How do you load an external HTML page into a table cell? Thanx. Jona 05-23-2003, 12:39 PM You can only do this with a server-side language. It is not possible with HTML alone. Here is some SSI code: <table width="80%"> <tr><td> <!--#include file="include.html" --> </td></tr> </table> Of course, this will only work if your server supports SSIs and your document has an extension of .shtml or .shtm. stmasi 05-23-2003, 12:43 PM Actually, it is possible with HTML alone, but I really don't wish to use an IFRAME as it is not cross-browser compatible. pyro 05-23-2003, 12:45 PM Also, remember -- when including files, elements such as <html><head> etc should be removed from the file you are including. If it is not, you could use PHP to include the file after removing these items. It would be simplest just to not have them in the file, though, if that is a possibility. Jona 05-23-2003, 12:45 PM Believe it or not, IFrames work in Netscape6+, and are valid HTML 4.01. stmasi 05-23-2003, 12:48 PM REALLY?! COOL!!! Thanx yet again, guyz and galz!!! :D stmasi 05-23-2003, 12:50 PM By the way... Does ne1 happen to know where I might find a COMPLETE list of ALL options available for the IFRAME command? Thanx. Jona 05-23-2003, 12:51 PM At the W3C: http://www.w3.org/TR/html401/present/frames.html#h-16.5 P.S. I am a guy! :) Charles 05-23-2003, 12:55 PM http://www.w3.org/TR/html4/present/frames.html#edef-IFRAME And don't forget to supply a link to the external document for those few browsers that do not understand the IFRAME element. <iframe src="http://www.w3.org/"><a href="http://www.w3.org/">W3C</a></iframe> webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |