Blame view
static/js/application.js
836 Bytes
ffd3b3723 idem |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
// Some general UI pack related JS $(document).ready(function() { tagging(); }); function tagging(){ $('#go').click(function(){ data=JSON.stringify({ "string" : $('#data').val() }); console.log(data); $.ajax({ type: "POST", url: "tagger", data: data, success: function(data){ |
e0e492698 Passage au proces... |
17 |
//data = JSON.parse(data); |
ffd3b3723 idem |
18 |
result=$('#result'); |
e0e492698 Passage au proces... |
19 20 21 22 23 24 25 26 |
//_.each(data, function(element, index, list){ // console.log(element); // result.append(_.escape(element["word"])+" "); // result.append(_.escape(element["markup"]+" ")); // result.append(_.escape(element["lemm"]+" ")); //}); result.append(_.escape(data)); |
ffd3b3723 idem |
27 28 29 30 31 32 33 34 35 36 37 |
console.log(_.escape(data)); console.log("resultat"); }, error: function(){ alert("error"); }, dataType: "text", contentType:"application/json; charset=UTF-8" }); }); } |