view WebContent/script/echo.js @ 29:fa9a5f930d0e

Ading the pre-built jar
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Tue, 10 Dec 2013 15:24:30 +0000
parents 3b092b89c92e
children
line wrap: on
line source
// humanecho.js

$(document).bind("ajaxSend", function(){
   $(".ajax-loader").show();
 }).bind("ajaxComplete", function(){
   $(".ajax-loader").hide();
 });

$(document).ready(function(){
    $("#generate").click(function(){

        alert("Gonna call..");

        var distance = $("#dist").val();
        console.log(distance);

        $.get('HumanEcho',
            { dist: distance },
            function(responseText) {
                $('#responsetext').text('OK');
            });
    });




});