Ciao Ho impostato un testo di input automatico. Sto tentando di avviare l'evento di ristampa della tabella al clic di un btn e su un tasto Invio. il btn click funziona bene e ma la pressione di un tasto enter sembra che spara un paio di volte prima di stoping (cioè il tavolo sfarfalla)jQuery keypress evento che spara alcune volte
$('body').bind('keypress', function(e) {
if(e.keyCode==13){
var str = $('#Filter').val();
$('#Table').fadeOut("slow").load('printShorts.server.php?Sortby=<?echo $sort;?>&dir=<?echo $direction;?>&filter='+encodeURIComponent(str)+'&usergroup=<?=$usergroup?>&no-cache=' + (new Date()).getTime()).fadeIn("slow");
}
});
non accade tutto il tempo e agisce differntly nei browser differnt ..
grazie, bello (capito?:-)) – devmonster
vedo quello che hai fatto lì – Dishcandanty
Ahhhh ... Aces! Questo mi stava facendo impazzire! – JustBaron