Thread: Inserting Html
Results 1 to 4 of 4
inserting css into php pages? Forum: CSS ForumReplies: 10
Inserting Multiple value of '<input>' to a table in PHP/MySQL Forum: PHP ForumReplies: 0
Inserting system calculator Forum: HTML ForumReplies: 0
Load data infile and inserting timestamps automatically Forum: PHP ForumReplies: 1
05-14-2003, 12:14 PM #1
I am looking for a way to insert all the html code contained in another document when a different page loads. I have several pages and would like them to share the same table in the body. Is there a simple Javascipt, vbscript, or html command to do this?
Typically I would use a database, but I am restricted to client side code only.
Thanks for any help you'll can provide.
05-14-2003, 02:16 PM #2
otherwise, you can use an include. These rely on the page extension and the parse engine on the server.
This thread has some links to include tutorials
http://www.ahfb2000.com/webmaster_he...hlight=includeIf one of our members helps you, please click the icon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
05-14-2003, 05:58 PM #3
Let me see if this is right. The only way to include a file when you are limited to the client side is to use a .js file with a document.write command? This appears to be a pain, as I can not use an stripped down html page. Perhaps this is way you said "not good." If only I could document.write an html file.
05-14-2003, 09:24 PM #4
You could use an Iframe. If your table has absolute dimensions, you can easily add this to your pages.
<iframe width="200" height="200" scrolling="auto or no or yes" frameborder="0" src="page_with_content.html"><noframes>Your browser doesn't support Iframes</noframe><iframe>