Plot
----

I save every visit to a count.dat file on my website. It just outputs `123450`. So it displays pageviews till the second of website.

Problem
-------

Firstly I was displaying it using `file_get_contents` but then I tried to display it every two seconds using ajax. But the resulting div is empty, always.

What I have tried so far is..
-----------------------------

JS:

```
    (function(d, s, id) {
  $(document).ready(function(){
      refreshTable();
    });

    function refreshTable(){
        $('#tth').load('count.dat', function(){
           setTimeout(refreshTable, 2000);
        });
    }

```

count.dat

```
123456

```

HTML

```
<div id="tth"></div>

```

Additional info :
-----------------

Jquery version

```
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>

```