Problem in chatbox made in jquery -
i have made chatbox in jquery , want add functionality see "xyz typing" have written code
setinterval("typing()", 1000); function typing() { var name1= $("#name").val(); var n=$('#message').val().length(); if(n>1) $('#shout').prepend(name1+'is typing'); }
but not working. someoen pls help...
you shouldn't use "typing()"
. invoke eval()
internally. instead, use typing
.
if have made chatbox, want send server via ajax person has typed something.
Comments
Post a Comment