﻿/// <reference path="jquery-1.4.4.js" />
setInterval("_verificaTempo();", 1000 * 6);

function _verificaTempo() {
    $.ajax({
        type: "POST",
        url: "http://www.dekalb.com.br/Service.asmx/_requestTempo",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function (retorno) {
            var tempo = retorno.d;

            $('.cidade').html(tempo['Cidade']);
            $('.data').html(tempo['Data']);
            $('.tempbaixa').html(tempo['Tmin']);
            $('.tempalta').html(tempo['Tmax']);
            $('.umidade').html(tempo['Prec']);
        }
    });

}










