application.js 468 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.html(_.escape(data));
			console.log(_.escape(data));
			console.log("resultat");
		},
		error: function(){
			alert("error");
		},
		dataType: "text"
	});
});
}