title: Refresh each second with setInterval
body: <p>I am logging to refresh a page each sec, and displaying a <code>console.log</code> message:</p>
  
  <pre><code>function refreshEachMinute() {
      $.ajax({
          type: "POST",
          url: "minutesrefresh.php",
          //data: dataString,
          dataType: "json",
          success: function(data) {
              //alert('ref');
              console.log('ok');
          }
      });
  } // end function refresh
  
  // refresh each minute
  setInterval(refreshEachMinute, 1000);
  </code></pre>
  
  <p>The alert message shows, but the <code>console.log</code> does not. In addition, <code>minutesrefresh.php</code> is not loading in the Firebug bar.</p>