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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -