Web Development with jQuery®

(Elliott) #1

Dynamically Loading JavaScript (^) ❘ 201
Whatever use you fi nd for this functionality, in this section, I walk you through the API that
jQuery provides for loading JavaScript via its AJAX interface using the $.getScript() method. The
following example demonstrates how to load the entire jQuery UI API asynchronously and then uses
that API to produce an animation that transitions between two colors. This is demonstrated in the
following document, Example 7-5:
<!DOCTYPE HTML>





November 2013







































[http://www.it-ebooks.info](http://www.it-ebooks.info)

November

2013
Sunday Monday Tuesday Wednesday Thursday Friday Saturday
27 28 29 30 31 1 2
3 4 5 6 7 8 9