The documentation of jquery.com is a bit poor. see this tutorial:
ibm.com/developerworks/library/x-aj ...
or google : jquery ajax tutorial
you'll get what you need.
for the position thing I thing you'll have to call the server on time intervals.. let me think and get back to you. I've searched alot for implementing a sleep function in js but nothing's working till now..