Hasidluu adlı üyeden alıntı: mesajı görüntüle
                $("#sonuclar").hide();

                $("#arama").keyup(function(){

                    var value = $(this).val();
                    var deger = "value="+value;

                    $.ajax({

                        type: "POST",
                        url: "sistem/post/post.aracara.php",

                        data: deger,
                        success: function(cevap){
                            if(cevap == "yok"){
                                $("#sonuclar").show().html("");
                                $("#sonuclar").html("Hiç bir sonuç bulunamadı!!");
                            }else if(cevap == "bos"){
                                $("#sonuclar").hide();
                            }else {

                                $("#sonuclar").show();
                                $("#sonuclar").html(cevap);

                            }
                        }    

                    })

                });
Bir inputa birşeyler yazılınca post ettiriyorum.
Fakat her harfe basınca post edildiğinden gereksiz yere sql sorgusu dönüyor.

Daha kontrollü birşey yapılabilir mi?
Nasıl yapılır?
Merhaba,

Aranan değer girildikten sonra yazmaya devam edilmediği an çalışan bir yöntem yapmıştım ben;

islemBittiMi.js diye bir dosya oluşturun,

; (function ($) {
    $.fn.extend({
        islemBittiMi: function (callback, timeout) {
            timeout = timeout || 1e3;
            var timeoutReference,
                doneTyping = function (el) {
                    if (!timeoutReference) return;
                    timeoutReference = null;
                    callback.call(el);
                };
            return this.each(function (i, el) {
                var $el = $(el);
                $el.is(':input') && $el.on('keyup keypress', function (e) {
                    if (e.type == 'keyup' && e.keyCode != 8) return;
                    if (timeoutReference) clearTimeout(timeoutReference);
                    timeoutReference = setTimeout(function () {
                        doneTyping(el);
                    }, timeout);
                }).on('blur', function () {
                    doneTyping(el);
                });
            });
        }
    });
})(jQuery);
Yukarıda ki kodları içerisine ekleyin sonra

$(document).ready fonksiyonunuz içerisinde

    $("#inputIdsiGirin").islemBittiMi(function () {
       alert("Yazma işlemi bitti");
    });