Mercurial > hg > human-echolocation-java-webapp
view WebContent/script/echo.js @ 28:52adafab20c1
The Servlet now sends the audio file to the browser;
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 10 Dec 2013 12:02:46 +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'); }); }); });