2
In my Commerce there is a search field. As you type, you return a list of products in a div below the search field. That’s 100%
On the label I put an onkeyup that performs a function that searches the product list and displays. this is 100% too
My problem is that if the digital person "S5 battery" for example will be made 10 get synchronous, each result display takes ~1 seconds, the removal of the product list in this example would take ~10 seconds
My question is whether there is a new request created to stop/break/kill the previous request
Follow down my get
$.ajax({
url: "<?=$this->Html->url(array('controller' => 'busca', 'action' => 'searchanise'));?>",
type: 'POST',
async: false,
data: {texto: text},
success: function(data){
retorno = JSON.parse(data);
$("#searchanise").html(retorno);
}
});
You can use the jQuery Autocomplete who already does all this.
– Franchesco
It is a complex search system, which takes several metrics into account, not to simply make an array with the product names =/. But I see the help
– SOSTheBlack