Donate SIGN UP

html

Avatar Image
bobb1985 | 00:41 Thu 22nd Mar 2007 | Technology
3 Answers
how do you insert chunks of html from an external file into another html document? i'm looking to create a template.
Gravatar

Answers

1 to 3 of 3rss feed

Best Answer

No best answer has yet been selected by bobb1985. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
hi you could try to highlight the chunks you want in one document then with the mouse pointer on the highlighted parts, right click the mouse scroll down to the copy command and click, then move the mouse to the new document and place them where you want, then right click the mouse and scroll down to the paste command and click.
hope this helps
thegamer
Question Author
thankyou for this piece of information you have given me, but i am looking more than duplicating large chunks of html throughout other html pages.
what im looking for is the html to pick the html code of another html document, so that changing any html will cascade throughout.
There's a couple of ways of doing this, both of which are quite involved.

The first and recommended way would be to use a server side include. Script technologies like PHP and ASP allow this and you simply embed a command in the script to include another file.

The other way is to use dynamic HTML and some lovely AJAX. Using the XmlHttp object you can pull other files from the server and embed them into your HTML dynamically. There are lots of articles on AJAX on the net.

1 to 3 of 3rss feed

Do you know the answer?

html

Answer Question >>