Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
User is typing
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="NSA" data-source="post: 200378" data-attributes="member: 10034"><p>Hello.</p><p> </p><p>So I'm working on my Chat application and I'm trying to implement a "%user% is typing..." function.</p><p>Now, I have it working to that when the user start's typing, it says they're typing.</p><p>But, I cannot figure how to get it to disappear.</p><p> </p><p>Screenshot:</p><p> </p><p><img src="http://gyazo.com/ce923fd8d8bf7a5ff235292a7360547d.png?1366795983" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p> </p><p>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.</p><p> </p><p>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:</p><p> </p><p>Pseudo: "User stops typing... wait 3 seconds, delete them from page".</p><p> </p><p> </p><p>If anyone can help me with this, it'd be greatly appreciated.</p></blockquote><p></p>
[QUOTE="NSA, post: 200378, member: 10034"] 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: [IMG]http://gyazo.com/ce923fd8d8bf7a5ff235292a7360547d.png?1366795983[/IMG] 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. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
User is typing
Top