Following function is being called at every 10 second.

```
function getData()
    {      
        $.ajax({
              url       : "refresh.php",
              type      : "POST",
              data      : {"id" : id},            
              success   : function(data) {
                 $(".show").html(data);
              }
          });
    }
        $(document).ready(function(){
      setInterval("getData()",50000);//Polls in every 50 sec
    });

```

What I want is: when page is loaded, `getData()` should be called instantly, after that each call should be at given interval i.e. 50second

how to do this?