Reply to Re: including with innerHTML

Your name:

Reply:


Posted by Bone Ur on 11/11/07 09:14

Well bust mah britches and call me cheeky, on Sun, 11 Nov 2007 07:57:17 GMT
scribed:

> Hi,
>
> I know how to use innerHTML but I want to use it to dynamicly include
> other text files on the web server.
>
> I know this can be done by php (did that before) and SSI (not yet
> done) but since I moved my personal site to the site of the provider
> that does not support php and SSI I'm looking for a system that always
> works under html + javascript
>
> thanx
>
> Marco

You can use:

<script type="text/javascript" src="text.txt"></script>

and put it in your page where you want the text. In "text.txt" do a
document.write. (Avoid xhtml.)

--
Bone Ur
Cavemen have formidable pheromones.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация