954,566 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Mouse Movement with ajax

Two users are connected with a server if user A move his mouse on his browser window than the shape on user B browser Window should be move.

Any idea how i can do this.

shahramjaved
Newbie Poster
9 posts since May 2010
Reputation Points: 10
Solved Threads: 2
 

You would have to set up some sort of polling solution where the client that should have the object move on is constantly requesting information from the server on where the mouse position is. The server would probably need to buffer mouse movements from the first client to pass to the second client upon request. There are a few polling/streaming techniques out there and you should probably start off with googleing for "javascript streaming" or "javascript polling techniques" or "javascript comet". http://en.wikipedia.org/wiki/Comet_(programming)

scrappedcola
Posting Whiz in Training
227 posts since Dec 2009
Reputation Points: 27
Solved Threads: 45
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: