Road rules0 min ago
html
3 Answers
how do you insert chunks of html from an external file into another html document? i'm looking to create a template.
Answers
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
hope this helps
thegamer
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.
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.