Using promise() with JQuery animate
With jQuery 1.5 the $.ajax implements the Promise interface. So you can use done() fail() and always() on the returned promise object returned from the ajax call. You can do the same when invoking the animate() function. The animate function returns the collection of elements the animate() is acting on, so you can create the promise explicitly and observe when all actions bound to that collection have finished.
Simple NodeJS Server
Here is a Simple NodeJS Server
iOS display Alert using UIAlertView
how to display alert in ios example