good days when i execute below codes i am getting the download .gif at #sonuc and #pass same time . i can not fix this conflict , can anybody help me thx...
$(document).ready(function(){ $('#userid').keyup( function(e){ e.preventDefault(); var userid=document.getElementById("userid").value; $.ajax({ type: 'GET', url: 'logincheck.jsp', data: 'userid='+userid, dataType:"text/html", success: function(sonuc) { $('#sonuc').html(sonuc); } }); return false; } ); //$.ajaxTimeout(); $("#sonuc").ajaxStart(function(){ $(this).html('<img src="image/yukleniyor.gif" />'); }); $("#sonuc").ajaxError(function(){ $(this).html('<img src="image/error.png" />'); }); }); /* function sonucAl() { var userid=document.getElementById("userid").value; $.ajax({ type: 'GET', url: 'logincheck.jsp', data: 'userid='+userid, dataType:"text/html", success: function(sonuc) { $('#sonuc').html(sonuc); } }); return false; } */ $(document).ready(function(){ $('#password').keyup( function(e){ e.preventDefault(); var password=document.getElementById("password").value; $.ajax({ type: 'GET', url: 'passcheck.jsp', data: 'password='+password, dataType:"text/html", success: function(sonuc) { $("#pass").html(sonuc); } }); return false; } ); $("#pass").ajaxStart(function(){ $(this).html('<img src="image/yukleniyor.gif" />'); }); $("#pass").ajaxError(function(){ $(this).html('<img src="image/error.png" />'); }); }); /*function sifreAl() { var password=document.getElementById("password").value; $.ajax({ type: 'GET', url: 'passcheck.jsp', data: 'password='+password, dataType:"text/html", success: function(sonuc) { $("#pass").html(sonuc); } }); return false; } */