]> Sprinkle Javascript library by Jon Davis
<script src="sprinkle.js"></script>

<div src="info.html"></div>

This is basically CSI (Client-Side Includes), when SSI (Server-Side Includes) is not available. You can also call it "sprinkle", as that's the name I gave the Javascript library.

Why "sprinkle"? Well, why clutter a web page with IFRAMEs or a zillion AJAX calls when you should simply be able to "sprinkle" your empty DIVs with src=".." ?

Call me a wuss, but I'm a pantsy for messy markup. I'm also on a diet. I've found that sprinkling spices on my microwaved frozen veggies goes a long way to turning a boring side dish into a delicious meal compliment.

I've also found that being an ASP.NET developer for Windows but integrating with a Linux / Perl shop can be very interesting, but when dealing with content integration it can be a genuine pain in the hind parts since server-side execution behaviors are vastly different. Hence, my approach to CSIs (Client-Side Includes).

Download version 1.3d here: sprinkle.js (last modified: 11/4/2007)
(Download compressed (4kb): sprinkle_compressed.js by Javascript Compressor

Tested on: Internet Explorer 7.0, Internet Explorer 6.0, Firefox 1.5 & 2.0
Partially supported: Safari 3.0 for Windows, Safari 1.3.2 for Mac (limited support on Safari as it doesn't seem to support reads/writes on the value property of dynamic <input ..> tags)
Not supported yet at all: Opera 9.23 or lower
Not even tested yet: Safari  for Mac, and everything else

Other notes:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
[
	<!ATTLIST div src CDATA #IMPLIED >
	<!ATTLIST div anticache CDATA #IMPLIED >
	<!ATTLIST div wraptag CDATA #IMPLIED >
	<!ATTLIST div apply CDATA #IMPLIED >
	<!ATTLIST input anticache CDATA #IMPLIED >
	<!ATTLIST input apply CDATA #IMPLIED >
]>  

Anything else worth noting? E-mail me ..  jon @t jondavis dot-net

Who on earth is Jon Davis?
I'm not the lead singer of Korn, nor have I been host or engineer on any TV shows (although I nearly went down that career path). I am, however, a senior developer at a very prominent Internet services company that you yourself have probably done business with at some point in your life.

Valid XHTML 1.0 Transitional