jQuery autocomplete with python cgi as remote source
I am new to python. I don't know how to get the data from python CGI script for jQuery autocomplete. The cgi script generates json data. For example. [{"product": "isoleucyl-tRNA synthetase"}
My html so far :
$(document).ready(function() {
$( "#tags" ).autocomplete({
source: "./search_term.cgi"
select: function(event,ui) {
var availableTags = ui.item.product;
}
});
} );
Any help would be much appreciated.