JSON - Problemas com tratamento

Front-end

30/10/2015

Boa tarde amigos, estou com um problema, estou tentando tratar alguns dados retornados em JSON através do javascript, mas não consigo obter resultado algum, segue abaixo meu código que vocês podem testar.

<html>
    <head>
        <title>AVC - Painel de Horários</title>
        <meta charset="UTF-8">
        <link href="./libs/css/padrao.css" rel="stylesheet">
        <link href="./libs/css/bootstrap/css/bootstrap.css" rel="stylesheet">
    </head>
    <body>
        <div class="container">
            <table>
                <thead>
                    <th>Teste</th>
                </thead>
                <tbody>
                    <tr>
                        <td id="linha"></td>
                    </tr>
                </tbody>
            </table>
            
        </div>     
        <!-- ****************** SCRIPTS ********************************* -->
        <script type="text/javascript" src="./libs/padrao.js"></script>
        <script type="text/javascript" src="./libs/jquery/jquery.js"></script>
        <script type="text/javascript" src="./libs/css/bootstrap/js/bootstrap.js"></script>
        <script type="text/javascript">
            $.ajax({
                type: "GET",
                url: "http://editor.mobilibus.com.br/web/proximas-partidas-json/35llr/7mon?callback=?",
                async: false,
                jsonp: "callback",
                contentType: "application/json",
                dataType: "jsonp",
                success: function(json){
                    $("#linha").text(json.partidas[1].horario);
                }
            });

        </script>
    </body>
</html>


Se vocês testarem a URL vão ver que é retornado os dados normalmente.
Jonas Tomazelli

Jonas Tomazelli

Curtidas 0
POSTAR