[eluser]Unknown[/eluser]
Hello,
I'm building an autosuggest for a field. So from the view on the keyUp event of a field a call that
Code:
$.post('index.php/ajax/autosuggest',
{ 'str':str },
function(result) {
// if there is a result, fill the list div, fade it in
// then remove the loading animation
if(result) {
$('#autosuggest_list').html(result);
$('#autosuggest_list').fadeIn(500);
// $('#class_activity').removeClass('loading');
}
});
In my controller the autosuggest method return me a simple string (just to test). when i run it on localhost. it's very fast. But when i put in on my webserver (OVH, 60 euro per month) the $.post call taks... 6 secondes !! (every times)
Can someone tell me what's wrong ? The way i'm implementing it is the server that has a problem ??
thanks