title: Success function in ajax when using setInterval doesn't work
body: <p>Well I would like to check answer from server every 5 seconds. But my success function inside $.ajax just does not work. Although ajax sends requests and gets response. Time limit is not exceeded since function is run every 5 seconds and response is received within 1 second.
  If i put something inside checkMyCreatedGame function after $.ajax it does work but success function does not.</p>
  
  <pre><code>var checkMyGame;
  checkMyGame =setInterval(checkMyCreatedGame,5000);
  var checkMyCreatedGame = function(){
      $.ajax({
              url   :'../cgi-bin/lobby.py',
              type  :"GET",
              cache :false,
              data {
                  "checkMyGameId":createdGameId,
                  "player":playerName
              },
              dataType:"json",
              success:function(jsonData){
                  console.log(jsonData)
  
              }
      });
  };
  </code></pre>
  
  <p>Here is my firebug console logs when I run this code (do not pay attention to what is above those gets):
  <img src="https://i.stack.imgur.com/e9HBa.png" alt="firebug"></p>
  
  <p>Here is same screenshot but not resized by stackoverflow: <a href="https://i.stack.imgur.com/e9HBa.png" rel="nofollow noreferrer">https://i.stack.imgur.com/e9HBa.png</a>
  As you can see console.log inside success function is not executed.</p>