DOM extreme tracker
description:
following on from Lori Leach's question on the WSG list:
I want to put a "hit tracker" on my site -- well actually, I already have one. I have been using Extreme Tracker to keep up with stats. However, a few weeks ago, when I posted something up here, a few of you went to my site, validated my code and it was a mess -- this was due to the ET code.
the default Extreme Tracker code relies on a <SCRIPT> and a <NOSCRIPT> block, which could be made to validate by escaping ampersands and wrapping parts in proper block level elements. more fundamentally, though, the code relies on document.write() which won't work if the document is sent as application/xhtml+xml.
this experiment provides a rewritten, DOM friendly version which works in even if the page is sent with the correct MIME type and, as a byproduct, removes a lot of clutter from your page if you decide to use it.
- completed:
- 11/01/2005
