Sending continuous Ajax .post var using jquery to server -



Sending continuous Ajax .post var using jquery to server -

i want continuously maintain sending update server using jquery. interval nil. best way this? updating cursor position of 1 time person on others screen. practical implementation in prototype of html5 whiteboard.

what options available.

which best way , implications.

function send_position(){

//code post

}

setinterval( "send_position()", 10 );

will method ok?

either using window.settimeout() described robert or, if utilize html5, utilize websockets: http://code.google.com/p/jquery-websocket/

jquery ajax setinterval continuous

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -