application.js
470 Bytes
// Some general UI pack related JS
$(document).ready(function() {
tagging();
});
function tagging(){
$('#go').click(function(){
data={"string" :$('#data').val()};
console.log(data);
$.ajax({
type: "POST",
url: "tagger",
data: data,
success: function(data){
result=$('#result');
result.append(_.escape(data));
console.log(_.escape(data));
console.log("resultat");
},
error: function(){
alert("error");
},
dataType: "text"
});
});
}