AJAX Web Page Hit Counter
The Neurillion Free Web Page Hit Counters are free items from Neurillion released under a Creative Commons Attribution 3.0 License. These counters were written by the author for the author to test various methods of recording and displaying a page hit counter and come with absolutely no guarantee or warranty. Please refer to the FAQ and help sections for more information and a proper disclaimer.
AJAX
The Asynchronous Javascript And XML (AJAX) counter is unique in many ways including the ability to count various items on a page other than just the page as itself as a whole and also the requirement that the system accessing the page has a compatible javascript available. The primary issue with this counter is that if the accessing system doesn't have javascript -- no hits will occur.
There are two counters on this page labelled "MOUSE OVER HERE" ... when the mouse goes over these DIVs, the corresponding counter DIV will turn red to indicate the start of the AJAX request and the counter DIV will return to grey when the AJAX response has been received and the count display is updated. This is to help show the latecy of the AJAX round-trip.
Example usage in HTML:
HTML
<div id="itemId"">RESULTS HERE</div>
Example 1
Source
- AJAX -- browse source trees.
- counter_ajax_v2.tar.gz -- compressed tar (dist for other versions)