Snippets of the day Monday – November 03, 2014

Posted on Posted in Snippets

software-development
Here are some of the most recently published snippets!

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.

Open the snippet

Author: micurs

Simple NodeJS Server

Here is a Simple NodeJS Server

Open the snippet

Author: Gabrielyan

iOS display Alert using UIAlertView

how to display alert in ios example

Open the snippet

Author: wassim

Leave a Reply

Your email address will not be published. Required fields are marked *