-
Book Overview & Buying
-
Table Of Contents
YUI 2.8: Learning the Library
By :
The YUI Connection Manager utility provides an almost unequalled interface to AJAX scripting methods used today among the many JavaScript libraries available. It handles the creation of a cross-platform XHR object and provides an easy mechanism for reacting to success and failure responses among others. It handles common HTTP methods such as GET and POST with equal ease, and can be put to good use in connection (no pun intended) with a PHP (or other forms of) proxy for negotiating cross-domain requests.
If JSON is used, an increasingly attractive alternative, the JSON utility can be used to encode and decode native JavaScript objects into strings that can be easily transmitted.
Finally, the Get utility allows us to go across domains without the need of a proxy, as long as the server supports JSONP. It also dynamically inserts code or CSS Styles in our application.
Change the font size
Change margin width
Change background colour