View Full Version : integrate a reference text


Ixoyer of Men
09-20-2006, 01:05 AM
In html, what code would I use to display either html or text found somewhere else?

For example, if I had a .txt file (or html), could I leave the document where it is and yet display (or reference) the information on another site?

J to the izzosh
09-20-2006, 02:43 AM
Arrrr, ye be needin' some manner of include scripts fer that, matey. Lucky for you, our fine Lissa be havin' just that info on this very site! Have a look, ya scurvy dog!
http://www.lissaexplains.com/html6.shtml#SSI

Ixoyer of Men
09-20-2006, 03:40 AM
Is there a way to accomplish the same thing without shtml? I was given a bit of code as follows:


<script language=javascript src=http://www.amerisearch.net/american_minute.asp> </script>


I can use it within html and it displays text from that site on my site. Is there a way to incorporate text or html instead of javascript?

pb&j
09-20-2006, 04:27 AM
perhaps look for "iframes" to see if that may be a solution for you.

Ixoyer of Men
09-20-2006, 06:50 AM
Thank you everyone for your help. I finally figured out what I needed. If you insert the following code
<script language=javascript src=http://www.test.com/test.asp> </script>
into a plain html file, it will work - it just has to be linked to a javascript document to work.

If anyone knows how to make it work with simple html instead of javascript, please let me know.

pb&j
09-20-2006, 01:31 PM
html cannot insert a second document into itself. the closest it has available is an iframe. apart from that, you need to use a script like javascript or a serverside language like php or ssi.

Ixoyer of Men
09-21-2006, 08:14 AM
Can you put javascript into an html document?

pb&j
09-21-2006, 01:27 PM
yes, as a normal script or as an external one.
most tutorials and books on javascript should describe this.