NSA
sudo apt-get thefuckout.tar.gz
- Dec 9, 2011
- 715
- 86
Hello.
So I'm working on my Chat application and I'm trying to implement a "%user% is typing..." function.
Now, I have it working to that when the user start's typing, it says they're typing.
But, I cannot figure how to get it to disappear.
Screenshot:
I'm not sure if I should just call a function every x seconds to clear who is typing and then when they keep typing it inserts again, but then it'd keep flashing on and off the page.
To try and put it simple, let's say there was a jQuery function called "user_stops_typing" and there were some attributes like "seconds" and you use it like so:
Pseudo: "User stops typing... wait 3 seconds, delete them from page".
If anyone can help me with this, it'd be greatly appreciated.
So I'm working on my Chat application and I'm trying to implement a "%user% is typing..." function.
Now, I have it working to that when the user start's typing, it says they're typing.
But, I cannot figure how to get it to disappear.
Screenshot:
I'm not sure if I should just call a function every x seconds to clear who is typing and then when they keep typing it inserts again, but then it'd keep flashing on and off the page.
To try and put it simple, let's say there was a jQuery function called "user_stops_typing" and there were some attributes like "seconds" and you use it like so:
Pseudo: "User stops typing... wait 3 seconds, delete them from page".
If anyone can help me with this, it'd be greatly appreciated.