|
Posted by marco.stolle on 11/11/07 09:40
On 11 nov, 10:14, Bone Ur <monstersquas...@yahoo.com> wrote:
> 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.
Ok thanks,
I also found a way to use httprequests http://www.boutell.com/newfaq/creating/include.html
I'm also exploring that path
in order to include the pages in my main page I would use links with
variables in so that you can give someone a link that works like
www.mysite.com?page=thebodypage.htm
where thebodypage.htm is the page I want to include
how can I filter the variables in the link with javascript ( in php
there is the $_GET variable)
thanx
Marco
[Back to original message]
|