When I use a Semantic UI search with jQuery, I have a some problems:
API: API action used but no url was defined search Object {}
API: No URL specified for api event
My code:
$('#product_name').keyup(function() {
if($(this).val().length >= 2)
{
$.getJSON('http://localhost/eval/www/validations/add/' + $(this).val() + '?do=findProducts', function(payload) {
var content = payload.products;
$('.ui.search').search({
source: content
});
console.log('Data: ',content);
});
}
});
In content a had a right data, but with this errors? Can you help me please?
Thanks.