1 2$(function() { 3 $( "#ac_input" ).autocomplete({ 4 source: function( request, response ) { 5 $.ajax({ 6 url: "/script/gethint.asp", 7 dataType: "json", 8 data: {sword: request.term}, 9 success: function( data ) { 10 11 response($.map(data, function(item) { 12 return { 13 label: item.value, 14 value: item.key 15 } 16 })); 17 18 } 19 }); 20 //alert("success"); 21 }, 22 minLength:1, 23 delay:200, 24 select: function( event, ui ) { 25 //alert(ui.item.value + " select"); 26 document.search1.ac_input.value = ui.item.value; 27 search_action(); 28 document.search1.submit(); 29 } 30 }); 31});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.