One can use server side includes to reuse content in a web page. Also, a script can be included in a page with src as with image. Is there a way to do client side includes for other elements?

I have used the XSLT document() function in Emle but am looking for something more direct. See the applyDoc template in emle_lab.xsl.

1 answer

o.k.w 2355

The primitive approach is to use frames/iframes which most regard as 'ancient'. There is no tag in the HTML/XHTML specifications which performs the so-called client-side include. There are however a number of javascript alternatives.

Here's one using jQuery: inc: A super-tiny client-side include JavaScript jQuery plugin

Answered over 7 years ago by o.k.w