buscarPunto.js 565 Bytes
Newer Older
1 2 3 4 5 6 7
jQuery(function($){

    //Función para buscar un punto por id
    $("#botonBuscarPunto").on("click", function(){
        $.ajax({
            url: 'http://localhost:8080/Api-e004/punto/'+$("#idConsulta").val(),
            type: 'GET',
Pedro Rolon committed
8 9 10
            headers:{
            	apiKey: "pqntslc"
            },
11 12 13 14 15 16 17 18 19 20 21 22
            success: function(result){
                console.log(result);
            },
            error: function(){
                console.log("ocurrió un error");
            }
        });
    });

    console.log("script cargado: buscarPunto");

});