1
I’m trying to make a call Ajax as soon as the page loads and one every 2 minutes.
The first and the second works, but there’s no third call and so on.
      <script type="text/javascript">
            function CarregarJSON() {
                $.ajax({
                    type: "get",
                    url: "/Extranet/Monitor/DadosServerIISJson",
                    success: function (data) {
                    CPUIIS = data.CPU_IIS;
                    $("#CPUIIS").html(CPUIIS);
    //remoção de código para facilitar visualização
                    }
                });
                $.ajax({
                    type: "get",
                    url: "/Extranet/Monitor/DadosServerSQLJson",
                    success: function (data) {
       //remoção de código para facilitar visualização
                    }
                });
            }
            $(document).ready(function () {
                CarregarJSON();
                timeout = setTimeout(function () {
                    CarregarJSON()
                }, 12000);
            })
        </script>